My app works on a device with 5.1 (ipad). But it crashed on 6.0 simulator. Please, see an error.
@interface TwitterViewController : TWTweetComposeViewController
@property (weak, nonatomic) id<TwitterVCDelegate> delegateTwitter;
@end
//In QuotesVC I call
TwitterViewController *tweetVC = [[TwitterViewController alloc] init];
tweetVC.delegateTwitter = self;
[tweetVC postWithQuote:[quotesArray objectAtIndex:currentIndex]];
// my app has crashed
-[SLTwitterComposeViewController setDelegateTwitter:]: unrecognized selector sent to instance 0xa8d1bb0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SLTwitterComposeViewController setDelegateTwitter:]: unrecognized selector sent to instance 0xa8d1bb0'
libc++abi.dylib: terminate called throwing an exception
Edit Everything works well If I doesn't inherit TWTweetComposeViewController.
TWTweetComposeViewController *tweetSheet =
[[TWTweetComposeViewController alloc] init];
[tweetSheet setInitialText:@"Initial Tweet Text!"];
[self presentModalViewController:tweetSheet animated:YES];
I tested this code on ipad device 5.1 and ios simulator 6.0. It works well.
Is it permited to inherit TWTweetComposeViewController?