mirror of
https://github.com/zhigang1992/redpotion.git
synced 2026-01-12 17:43:23 +08:00
Updating to use RedPotion idioms
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
class <%= @name_camel_case %>Cell < UICollectionViewCell
|
||||
attr_reader :reused
|
||||
|
||||
def rmq_build
|
||||
rmq(self).apply_style :<%= @name %>_cell
|
||||
def on_load
|
||||
find(self).apply_style :<%= @name %>_cell
|
||||
|
||||
q = rmq(self.contentView)
|
||||
q = find(self.contentView)
|
||||
# Add your subviews, init stuff here
|
||||
# @foo = q.append!(UILabel, :foo)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user