Skip to content

Instantly share code, notes, and snippets.

@sheenobu
Last active December 11, 2015 16:28
Show Gist options
  • Select an option

  • Save sheenobu/4627602 to your computer and use it in GitHub Desktop.

Select an option

Save sheenobu/4627602 to your computer and use it in GitHub Desktop.
show_tableview_menu
def show_tableview_menu(b)
b.list_view do |x|
x.title = "X"
x.button "SameGame" do |nav|
show_samegame(nav)
end
x.button "Hello World" do |nav|
show_hello(nav)
end
x.button "Global IP" do |nav|
show_globalip(nav)
end
x.button "Next" do |nav|
b.list_view do |y|
y.button "Back" do |n2|
n2._popViewControllerAnimated true # doesn't work
show_tableview_menu(b) # doesn't work
x.show # doesn't work
end
y.button "Hello World 2" do |n2|
show_hello(n2)
end
end.show
end
end.show
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment