Skip to content

Instantly share code, notes, and snippets.

@Omnipresent
Created May 21, 2014 21:03
Show Gist options
  • Save Omnipresent/58b19c1ab9c1b9a4108f to your computer and use it in GitHub Desktop.
Save Omnipresent/58b19c1ab9c1b9a4108f to your computer and use it in GitHub Desktop.
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