Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class CustomCell < UITableViewCell
  2. def initWithStyle(style, reuseIdentifier: identifier)
  3. super
  4. @layout = CustomCellLayout.new(root: WeakRef.new(self)).build
  5. self
  6. end
  7.  
  8. def obj=(obj)
  9. @layout.foo = obj[:foo]
  10. @layout.bar = obj[:bar]
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement