Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CustomCell < UITableViewCell
- def initWithStyle(style, reuseIdentifier: identifier)
- super
- @layout = CustomCellLayout.new(root: WeakRef.new(self)).build
- self
- end
- def obj=(obj)
- @layout.foo = obj[:foo]
- @layout.bar = obj[:bar]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement