Skip to content

Instantly share code, notes, and snippets.

@buffpojken
Created September 30, 2015 22:15
Show Gist options
  • Save buffpojken/987b7baab8b3d178d12a to your computer and use it in GitHub Desktop.
Save buffpojken/987b7baab8b3d178d12a to your computer and use it in GitHub Desktop.
def find_button(st)
st.frame = {l: 20, t: 116, w: (device.width-40), h: 32}
find(st.view).children(:navigation_button_label).data("Find")
find(st.view).children(:navigation_button_icon).data(UIImage.imageNamed('shared/find_icon.png'))
end
def collection_button(st)
st.frame = {l: 20, t: 187, w: (device.width-40), h: 32}
find(st.view).children(:navigation_button_label).data("Monkey")
find(st.view).children(:navigation_button_icon).data(UIImage.imageNamed('shared/collection_icon.png'))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment