在我的应用程序中,我需要将以前的viewController标题显示给当前的viewController后标题.
它在iOS6中完美运行.
在iOS7中,自动显示"back"标题,而不是之前的viewController标题.
如何解决iOS7中的问题?
在ios7中,我可以显示No Twitter Accounts Alert,但它在ios7版本下完美运行
以下是我的源代码.
TWTweetComposeViewController *viewController = [[TWTweetComposeViewController alloc] init];
//hide the tweet screen
viewController.view.hidden = YES;
// viewController.view.backgroundColor=[UIColor clearColor];
// viewController.view.opaque=NO;
//fire tweetComposeView to show "No Twitter Accounts" alert view on iOS5.1
viewController.completionHandler = ^(TWTweetComposeViewControllerResult result) {
if (result == TWTweetComposeViewControllerResultCancelled) {
[self dismissModalViewControllerAnimated:NO];
}
};
[self presentModalViewController:viewController animated:NO];
//hide the keyboard
[viewController.view endEditing:YES];
Run Code Online (Sandbox Code Playgroud)