mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-28 15:44:31 +08:00
16 lines
247 B
Ruby
16 lines
247 B
Ruby
class BasicScreen < PM::Screen
|
|
title "Basic"
|
|
|
|
attr_reader :animation_ts
|
|
|
|
def will_appear
|
|
@will_appear_ts = NSDate.date
|
|
end
|
|
|
|
def on_appear
|
|
@on_appear_ts = NSDate.date
|
|
@animation_ts = @on_appear_ts - @will_appear_ts
|
|
end
|
|
|
|
end
|