开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜