开发者

bindings in Interface Builder

开发者 https://www.devze.com 2023-01-06 20:12 出处:网络
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 bin

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消