【发布时间】:2014-12-11 08:20:39
【问题描述】:
我正在将 twitter 应用程序集成到我的 iOS 应用程序中。问题出在登录时,当它返回到我的 iOS 应用程序时,我想要执行的 segue 没有在视觉上执行,这意味着从一个视图控制器到另一个视图控制器的转换不可见,但是prepareForSegue 方法正在被调用,我可以在我的输出控制台中看到它。 我的推特登录方法如下: - (IBAction)tweetbutton:(id)sender {
[SCTwitter initWithConsumerKey:@"your_consumer_key" consumerSecret:@"your_consumer_secret"];
[SCTwitter loginViewControler:self callback:^(BOOL success){
NSLog(@"Login is Success - %i", success);
if (success) {
[self performSegueWithIdentifier:@"authentication" sender:self];
}
}];
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
NSLog(@"prepareForSegue: %@", segue.identifier);
}
the output in console is:
2014-12-10 23:54:16.923 gems[1300:60b] Login is Success - 1
2014-12-10 23:54:16.946 gems[1300:60b] prepareForSegue: authentication
i don't understand where i am wrong and why segue is not performing visually.please suggest a suitable solution and also for your knowledge i am using plain view controller and not navigation controller.
thanks in advance.Any help would be appreciated.
【问题讨论】:
-
有人解决了这个问题吗?
标签: ios objective-c twitter xcode5