Created
May 21, 2014 21:03
-
-
Save Omnipresent/58b19c1ab9c1b9a4108f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NotesCell < UITableViewCell | |
def rmq_build | |
rmq(self.contentView).tap do |q| | |
@note = q.append(UILabel, :note_label).get | |
end | |
end | |
def update(data) | |
@note.text = data[:note] | |
@note.lineBreakMode = UILineBreakModeWordWrap | |
@note.numberOfLines = 0 | |
@note.sizeToFit | |
end | |
end | |
##Stylesheet | |
def note_label(st) | |
st.frame = {l: 15, t: 30, w: 150, h: 30} | |
st.color = "#7A7979".to_color | |
st.view.font = font.small_2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment