mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-12 08:58:52 +08:00
16 lines
319 B
Ruby
16 lines
319 B
Ruby
class FunctionalScreen < PM::Screen
|
|
attr_accessor :button_was_triggered
|
|
|
|
title "Functional"
|
|
|
|
def will_appear
|
|
self.button_was_triggered = false
|
|
add UILabel.alloc.initWithFrame([[ 10, 10 ], [ 300, 40 ]]),
|
|
text: "Label Here"
|
|
end
|
|
|
|
def triggered_button
|
|
self.button_was_triggered = true
|
|
end
|
|
end
|