[英]How to switch between NSObject Class to ViewController
I'm having to class one which extends NSObject
and second the view controller. 我必须对扩展
NSObject
类进行分类,然后对视图控制器进行分类。
What is my problem is that I want to go to NSObject
to view controller
that loads my xib
file of that view controller
. 什么是我的问题是,我想去
NSObject
到view controller
加载我的xib
是文件view controller
。
I have used the traditional, with no success thus far. 我使用了传统方法,到目前为止没有成功。
Suppose NSObject is MagentoLogin.m and I want to go to viewController, how can I achieve this? 假设NSObject是MagentoLogin.m,我想转到viewController,如何实现呢?
MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
[appDelegate.navigationController presentViewController:myNewViewController animated:YES completion:nil];
try this hope it will help 尝试这种希望会有所帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.