如何在NSobject 的子類中顯示ViewController? IOSNSobject 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以在 root view controller 中显示。[XStudent presentViewController: sureyModeViewController];在 XStudent 中加个函数: presentViewController: -(void) presentViewController: (UIViewController*)vController{ UIViewController* rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController]; [rootViewController presentViewController: vController animated: YES completion: nil];} 估计你的 XStudent 不是 strong 或 retain 的属性?放个断点在我的方法里看看被调用没 iphone开发 中文转码问题 关于视图切换 求助 如何让box2d里面的一个body 在某两点之间来回运动? 求高手帮忙看看这个递归函数的问题究竟在哪 请问这个上一题和下一题是如何实现的 新手问答GCD、GNUstep、Touch框架什么关系 Images.xcassets问题咨询 如何学好ios 高德地图显示自己的位置 请问scrollview中,如果不用代码,用故事面板也可以放很多很多东西吗? 关于三级联动picker Student * stu = [[Student alloc]init]; //用类方法初始化
你可以在 root view controller 中显示。[XStudent presentViewController: sureyModeViewController];在 XStudent 中加个函数: presentViewController: -(void) presentViewController: (UIViewController*)vController
{
UIViewController* rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
[rootViewController presentViewController: vController animated: YES completion: nil];
}
放个断点在我的方法里看看被调用没