bindings in Interface Builder
I want to have a button where if I click it, then some text is displayed that says "you clicked the button." I 开发者_JAVA技巧know how to do this using IBOutlet and IBAction. Can it be done with bindings? If so, then how?
I don't think so. You can't bind a momentary button to a property and expect that to work correctly. What would you bind on the button side? After pressing and releasing a momentary button, the button's state is unchanged, so there's nothing to bind do.
精彩评论