解决方案 »
- 这几个功能点大家有合适的开发思路吗?
- IOS button 图片变暗
- 新手求教如何代码实现UIView,同时使得里面的控件能够显示正常
- 调用CFWriteStreamCreateWithFTPURL错误
- Mac OS X下类似Windows的消息处理程序
- 求用纯代码做界面的源代码
- 怎么在oc中用swift实现controller跳转?
- 关于OC的成员变量和Property疑问
- iOS app能读取手机相册 但是能不能删除相册里的相片???
- ios 图片实现单指旋转缩放 美图照片拼图那种效果
- tabelview刷新
- 小弟新人,求大神们帮忙,内存未泄露,但是tableviewcell 数据源刷新内存持续上涨
UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UIViewController *clockViewController = [mainStoryBoard instantiateViewControllerWithIdentifier:@"clockViewController"];
clockViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:clockViewController animated:YES completion:nil];
}
@catch (NSException *exception) {
NSLog(@"Stack Trace: %@", [exception name]);
}
以上是代码,Main.storyboard 的 identify 一栏中的 name 就是 Main.storyboard 我看网上很多都是写 MainStoryboard 的 但是仍然有异常
你自己下面帖出的例子中也有了答案
UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];