You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
hellopatrick edited this page May 9, 2012
·
5 revisions
Ideas for table builder...
table_view_builder do |table|
table.section do |section|
section.header = "Static Section!"
section.footer = lambda { UIView.alloc.init }
section.row do |row|
row.title = "Launch"
row.action = "launch_game"
end
section.row do |row|
row.cell_builder = lambda do |row|
end
row.cell_customizer = lambda do |cell|
end
end
end
table.section do |section|
section.header = "Dynamic rows!"
# basically, we'll call the source when required.
# then create new rows with cell_builder, cell_customizer
section.source = lambda { self.my_array }
section.row_reuse_identifier = "MyRows"
section.row_builder = lambda {}
section.row_customizer = lambda {}
end
end