开发者

How to control UIMenuController, in case I do not want it hide automatically?

开发者 https://www.devze.com 2023-02-16 00:24 出处:网络
I\'m doing a chat tool, with a UITextField as input. The p开发者_如何转开发roblem is, when other UI control updates, like messages scroll on new arrivals, the UIMenuController, if currently visible,au

I'm doing a chat tool, with a UITextField as input. The p开发者_如何转开发roblem is, when other UI control updates, like messages scroll on new arrivals, the UIMenuController, if currently visible, automatically hides. How can I forbid such automation? Even I can catch the event with UIMenuControllerWillHideMenuNotification or UIMenuControllerDidHideMenuNotification, there's no way I can control it.


Did u try its instance method

setMenuVisible:(BOOL)menuVisible animated:(BOOL)animated
0

精彩评论

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