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

发布于 2024-12-22 08:43:00 字数 274 浏览 2 评论 0原文

我在项目中使用 Three20,并尝试将此路由添加到我的 url 映射中:

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

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

是不是有一个包罗万象的网址,然后自己解析查询?

感谢您的帮助 !

I'm using three20 in my project and I'm trying to add this route to my url mapping :

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

But the app fails at launch with an -[NSNull length]: unrecognized selector sent to instance 0x2a10cd8 error.

Isn't there anyway to have a catchall url and then parse the query myself ?

Thanks for your help !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬 2024-12-29 08:43:00

您应该使用类似这样的内容:

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

有关示例的详细列表,您可以在 Three20 中的示例文件夹下查看 TTNavigatorDemo 演示

You should use something like this:

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

For an extensive list of samples you can see the TTNavigatorDemo demo under the samples folder in three20

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文