MFMailComposeViewController键盘问题 [英] MFMailComposeViewController Keyboard Issue
本文介绍了MFMailComposeViewController键盘问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不按MFMailComposeViewController中的发送或取消按钮的情况下关闭键盘?!
How do i dismiss the keyboard without pressing the Send or Cancel button in MFMailComposeViewController?!
感谢您的帮助。
推荐答案
你能试试吗?
UIWindow* keyWindow = [[UIApplication sharedApplication] keyWindow];
UIView* firstResponder = [keyWindow performSelector:@selector(firstResponder)];
[firstResponder resignFirstResponder];
希望这会有所帮助....
hope this helps....
这篇关于MFMailComposeViewController键盘问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文