Monotouch数据绑定
如何将可观察属性绑定到单触摸中的 UIlabel 或 UITextField
TextField.Bind()
存在,但我无法使用。
这是参数:
UILabel.Bind (string binding, NSObject observable, string keyPath, NSDictionary options)
How to bind a observable property to UIlabel or UITextField in monotouch
TextField.Bind()
exists but i can't use.
here is the parameters:
UILabel.Bind (string binding, NSObject observable, string keyPath, NSDictionary options)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
相应的 Objective-C 文档位于:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html
您需要了解的重要内容是您要监视(绑定)的值是什么,以及从“可观察”作为“keyPath”可到达的 keyPath 是什么。一旦你有了这些,你就可以填写其余的。
The corresponding Objective-C documentation is here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html
The important bits that you need to know is what is the value that you will monitoring (binding) and what is the keyPath that is reachable from the "observable" as `keyPath'. Once you have those, you can fill in the rest.