1. 首页
  2. 数据库
  3. 其它
  4. Routable:RubyMotion UIViewController > URL路由器 源码

Routable:RubyMotion UIViewController > URL路由器 源码

上传者: 2021-04-24 15:23:06上传 ZIP文件 7.93KB 热度 5次
可路由 UIViewController-> URL路由器。 @router . map ( "profile/:id" , ProfileController ) # Later on... # Pushes a ProfileController with .initWithParams(:id => 189) @router . open ( "profile/189" ) 为什么这么棒? 因为现在您只需一个字符串就可以从应用程序的任何部分推送任何视图控制器:按钮,推送通知等。 安装 gem install routable 现在在你的Rakefile,需要routable : $: . unshift ( "/Library/RubyMotion/lib" ) require 'motion/project' require 'routable' Motion
下载地址
用户评论