¡@

Home 

2014/10/15 ¤U¤È 10:11:52

iphone Programming Glossary: mywindow

Is there a way to prevent the keyboard from dismissing?

http://stackoverflow.com/questions/6006017/is-there-a-way-to-prevent-the-keyboard-from-dismissing

UIKeyboardDidShowNotification object nil super viewDidLoad void coverKey CGRect r UIScreen mainScreen bounds UIWindow myWindow UIWindow alloc initWithFrame CGRectMake r.size.width 50 r.size.height 50 50 50 myWindow setBackgroundColor UIColor clearColor.. mainScreen bounds UIWindow myWindow UIWindow alloc initWithFrame CGRectMake r.size.width 50 r.size.height 50 50 50 myWindow setBackgroundColor UIColor clearColor super.view addSubview myWindow myWindow makeKeyAndVisible This works on iPhone apps... CGRectMake r.size.width 50 r.size.height 50 50 50 myWindow setBackgroundColor UIColor clearColor super.view addSubview myWindow myWindow makeKeyAndVisible This works on iPhone apps. Haven't tried it with iPad. You may need to adjust the size of myWindow..