是否有 MonoTouch.UIKit.UIKeyboard.BoundsFromNotification 的简单替代品?
MonoTouch.UIKit.UIKeyboard.BoundsFromNotification(MonoTouch.Foundation.NSNotificaton)]
在 iOS 3.2 中已弃用。我可以使用简单的替换方法/片段吗?
MonoTouch.UIKit.UIKeyboard.BoundsFromNotification(MonoTouch.Foundation.NSNotificaton)]
was deprecated in iOS 3.2. Is there a simple replacement method/snippet I can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
iOS 3.2 中添加了新方法来替换已弃用的方法。查看 UIKeyboard< /a> FrameBeginFromNotification 和 FrameEndsFromNotification 的文档。
有一个 stackoverflow 问题显示了如何更新代码,位于 How to使用 Apple iPhone SDK 获取 UIKeyboard 大小 它是 Objective C 语言,但应该很容易转换为 C#
New methods were added in iOS 3.2 to replace the deprecated one. Look at UIKeyboard documentation for
FrameBeginFromNotification
andFrameEndsFromNotification
.There's a stackoverflow question that shows how to update your code at How to get UIKeyboard size with Apple iPhone SDK it's in Objective C but should be easy to convert into C#