Ant*_*ony 0 iphone ios rubymotion ios6.1 ios7
我有以下代码来显示一个简单的按钮:
button = UIButton.buttonWithType(UIButtonTypeRoundedRect)
button.center = CGPointZero
button.frame = [[container.width/2-button.frame.size.width/2,150], [280,50]]
button.setTitle("Categorize New Project", forState: UIControlStateNormal)
button.addTarget(self,
action: "moveToChildView:",
forControlEvents: UIControlEventTouchUpInside)
Run Code Online (Sandbox Code Playgroud)
当我在带有6.1的模拟器iPhone视网膜(3.5英寸)中运行此应用程序时,它看起来像这样:

但是,当我在模拟器iPhone视网膜7.0中运行它时,它看起来像这样:

此代码是否需要更改才能与7.0一起使用?
| 归档时间: |
|
| 查看次数: |
98 次 |
| 最近记录: |