Skip to content

Instantly share code, notes, and snippets.

@tehprofessor
Last active December 18, 2015 00:18
Show Gist options
  • Save tehprofessor/5695252 to your computer and use it in GitHub Desktop.
Save tehprofessor/5695252 to your computer and use it in GitHub Desktop.
Calling an objective c method in Ruby Motion
[UIBarButtonItem configureFlatButtonsWithColor:[UIColor peterRiverColor]
highlightedColor:[UIColor belizeHoleColor]
cornerRadius:3];
# Caveat this doesn't actually work-- it's more to illustrate how to call the method and it's arguments.
UIBarButtonItem.configureFlatButtonsWithColor(UIColor.whiteColor, highlightedColor: UIColor.lightGrayColor, cornerRadius: 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment