但是这些控制器不会出现在iOS 7中(这些在iOS5,iOS6中运行).
我创建的Viewcontrollers出现在iOS7(ex.HogeViewController)中.
我不调用presentViewController:动画:在viewDidLoad完成或viewWillAppear.
有人有想法吗?
控制台日志:
init Error Domain=NSCocoaErrorDomain Code=4097 “The operation couldn’t be completed. (Cocoa error 4097.)”
要么
_serviceViewControllerReady:error: Error Domain=NSCocoaErrorDomain Code=4097 “The operation couldn’t be completed. (Cocoa error 4097.)”
要么
Unbalanced calls to begin/end appearance transitions for .
TWTweetComposeViewController(不显示)
TWTweetComposeViewController *viewController = [[TWTweetComposeViewController alloc]init]; viewController.completionHandler = ^(TWTweetComposeViewControllerResult result){ NSLog(@"Result : %d",result); }; [self presentViewController:viewController animated:YES completion:NULL];
日志
Result : 0
MFMailComposeViewController(出现一会儿,很快就会关闭)
- (void)send:(NSString*)email{ if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; NSArray *toRecipients = @[email]; [picker setToRecipients:toRecipients]; [picker setSubject:@"Subject"]; [picker setMessageBody:@"Body" isHTML:NO]; [self.navigationController presentViewController:picker animated:YES completion:NULL]; } } - (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error { [self dismissViewControllerAnimated:YES completion:^{ NSLog(@"error:%@,result:%d",error.description,result); }]; }
日志
_serviceViewControllerReady:error: Error Domain=NSCocoaErrorDomain Code=4097 “The operation couldn’t be completed. (Cocoa error 4097.)”
Unbalanced calls to begin/end appearance transitions for .
error:(null),result:0