Skip to content

Instantly share code, notes, and snippets.

@skellock
Created July 27, 2015 11:00
Show Gist options
  • Save skellock/bbec6b05f4951ce6ef3e to your computer and use it in GitHub Desktop.
Save skellock/bbec6b05f4951ce6ef3e to your computer and use it in GitHub Desktop.
def on_load
find(self).apply_style :ilya_cell
find(self.contentView).apply_style :ilya_cell_content
end
module IlyaCellStylesheet
def ilya_cell_height
80
end
def ilya_cell(st)
st.frame = {w: screen_width, h: ilya_cell_height}
end
def ilya_cell_content(st)
st.frame = {w: screen_width, h: ilya_cell_height}
end
end
def table_data
[
{cells: [
{cell_class: IlyaCell, height: stylesheet.ilya_cell_height}
]}
]
end
class IlyaScreenStylesheet
include IlyaCellStylesheet
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment