Hello. Please i need help with creating button in pyobjc app for iphone.
I know how create button instance:
But how set title for button ? Original Objective-C code is this:
So pyobjc code is this: (?)
Problem is in UIControlStateNormal. This class not exist, only UIControl (in loaded UIKit framework). So how i specify state for title ?
Sorry for my bad english.
I know how create button instance:
Code:
button = UIButton.alloc().init()
But how set title for button ? Original Objective-C code is this:
Code:
[button setTitle:@"MyTitle" forState:UIControlStateNormal];
So pyobjc code is this: (?)
Code:
button.setTitle_forState_("MyTitle", UIControlStateNormal)
Problem is in UIControlStateNormal. This class not exist, only UIControl (in loaded UIKit framework). So how i specify state for title ?
Sorry for my bad english.