Is there a simple replacement for MonoTouch.UIKit.UIKeyboard.BoundsFromNotification?

陌路散爱 提交于 2019-12-10 16:18:16

问题


MonoTouch.UIKit.UIKeyboard.BoundsFromNotification(MonoTouch.Foundation.NSNotificaton)]

was deprecated in iOS 3.2. Is there a simple replacement method/snippet I can use?


回答1:


New methods were added in iOS 3.2 to replace the deprecated one. Look at UIKeyboard documentation for FrameBeginFromNotification and FrameEndsFromNotification.

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#



来源:https://stackoverflow.com/questions/7784725/is-there-a-simple-replacement-for-monotouch-uikit-uikeyboard-boundsfromnotificat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!