
@interface ...-(IBAction)Btn_OpenSplitVIEw:(ID)sender;@end@implementation ...-(IBAction)Btn_OpenSplitVIEw:(ID)sender { UIVIEwController* secondVC = [[UIVIEwController alloc] initWithNibname:@"ContentVIEw" bundle:nil]; UIVIEwController* firstVC = [[UIVIEwController alloc] initWithNibname:@"MenuVIEw" bundle:nil withContentVIEwController:secondVC]; UISplitVIEwController* splitVC = [[UISplitVIEwController alloc] init]; splitVC.vIEwControllers = [NSArray arrayWithObjects:firstVC,secondVC,nil]; [self addSubvIEw:splitVC.vIEw]; }@end 总结 以上是内存溢出为你收集整理的iphone – 如何在按钮单击时显示UISplitViewcontroller全部内容,希望文章能够帮你解决iphone – 如何在按钮单击时显示UISplitViewcontroller所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)