Hello everyone, I am having some serious issue i cannot figure out. I just installed TwitterKit , followed all directions, i.e. updated info.plist , appDeveloper added [[Twitter sharedInstance]startWithConsumerKey:@“xxx” consumerSecret:@“xxx”]; and in my class calling the below code. Application keeps crashing in main nil object for self
keeps crashing on this line -> [composer showFromViewController:self.navController completion:^(TWTRComposerResult result) {
self.navController = [[UINavigationController alloc]initWithNibName:@"TwitterViewController" bundle:NULL];
composer = [[TWTRComposer alloc] init];
[composer setText:@"just setting up my Twitter Kit"];
[composer setImage:[UIImage imageNamed:@"twitterkit"]];
// Called from a UIViewController
[composer showFromViewController:self.navController completion:^(TWTRComposerResult result) {
if (result == TWTRComposerResultCancelled) {
NSLog(@"Tweet composition cancelled");
}
else {
NSLog(@"Sending Tweet!");
}
}];
Regards
JZ