Monotouch数据绑定

发布于 2024-12-23 17:05:45 字数 224 浏览 0 评论 0原文

如何将可观察属性绑定到单触摸中的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鹿港小镇 2024-12-30 17:05:45

相应的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文