mirror of
https://github.com/zhigang1992/RubyMotion-PixateFreestyle.git
synced 2026-01-12 22:51:56 +08:00
13 lines
280 B
Ruby
13 lines
280 B
Ruby
class HelloWorldController < UIViewController
|
|
|
|
def viewDidLoad
|
|
margin = 20
|
|
|
|
@button = UIButton.buttonWithType(UIButtonTypeCustom)
|
|
@button.frame = [[margin, 260], [view.frame.size.width - margin * 2, 40]]
|
|
view.addSubview(@button)
|
|
view.styleId = "myView"
|
|
end
|
|
|
|
end
|