带有查询字符串的TTURLMap? (NSNull长度错误)

时间:2011-12-20 11:27:31

标签: ios url-routing three20

我在我的项目中使用了three20,我正在尝试将此路由添加到我的网址映射中:

[map from:@“onefeat:// mission?(initWithArgs :)”toSharedViewController:[MissionListController class]];

但是应用程序在启动时失败 - [NSNull length]:无法识别的选择器发送到实例0x2a10cd8错误。

不管怎么说有一个catchall url然后自己解析查询?

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

你应该使用这样的东西:

[map from:@"onefeat://missions?missions=(initWithArgs:)" toSharedViewController:[MissionListController class]];

对于大量样本列表,您可以在三个示例文件夹下看到TTNavigatorDemo演示