Last active
December 18, 2015 00:18
-
-
Save tehprofessor/5695252 to your computer and use it in GitHub Desktop.
Calling an objective c method in Ruby Motion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[UIBarButtonItem configureFlatButtonsWithColor:[UIColor peterRiverColor] | |
highlightedColor:[UIColor belizeHoleColor] | |
cornerRadius:3]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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