gaosboy/urlmanager

一些问题请求作者回答

excBadAccess opened this issue · 1 comments

1.是否应该在启动后直接建立常用(多个)vc和url的映射关系?

[[UMNavigator sharedNavigator] setViewControllerName:@"UMDemoViewController" forURL:@"um://demo"];

[[UMNavigator sharedNavigator] setViewControllerName:@"UMViewControllerDemo2" forURL:@"um://demo2"];

2.是否应该为UMNavigator创建一个方法,一次加载多个映射关系?
3.- (UIViewController *)viewControllerForURL:(NSURL *)url withQuery:(NSDictionary *)query的query的作用

1,是的,必须这样做
2,可以直接操作config
3,有时候初始化vc需要传入对象


Jianjun. Gao, From iPhone
http://gaosboy.com/

On 2013年11月13日, at 下午6:06, Alex Lee notifications@github.com wrote:

1.是否应该在启动后直接建立常用(多个)vc和url的映射关系?

[[UMNavigator sharedNavigator] setViewControllerName:@"UMDemoViewController" forURL:@"um://demo"];

[[UMNavigator sharedNavigator] setViewControllerName:@"UMViewControllerDemo2" forURL:@"um://demo2"];
2.是否应该为UMNavigator创建一个方法,一次加载多个映射关系?
3.- (UIViewController *)viewControllerForURL:(NSURL *)url withQuery:(NSDictionary *)query的query的作用


Reply to this email directly or view it on GitHub.