• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

Posts tagged black

Objective-C> Set all iOS keyboard to black (Alert)

May01
2014
Written by Scott Rowley

In each view (.m file) you’ll just need to add the following to either the viewWillAppear or viewDidLoad section:

In each view (.m file) you’ll just need to add the following to either the viewWillAppear or viewDidLoad section:

for(UIView *view in self.view.subviews){
if([view isKindOfClass:[UITextField class]]){
UITextField *txt = (UITextField *)view;
[txt setKeyboardAppearance:UIKeyboardAppearanceAlert];
}
}
Posted in Objective-C - Tagged alert, class, ios, keyboard, objective-c, setKeyboardAppearance, subview, UIKeyboardAppearancealert, uitextfield, view, xcode

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top