uikeyboard

-[UIViewController _keyboard]: unrecognized selector sent to instance 0x7b731ac0

我只是一个虾纸丫 提交于 2019-12-01 10:44:14
I am writing an app with 3 viewControllers contained inside of a MainViewController. One of these is controlled through the storyboard and shows ads. The other two viewControllers are displaying information. Depending on the menu button pressed and the viewController to be presented the app determines which viewController to change. So far everything is working well except when ANY textField is selected. This causes the error to display. The instance is the viewController containing the textField, and is also the UIViewController named in the error. Also, the instance is not nil. I've placed a

How can I change the language of the displayed UIKeyboard from within my iPhone app?

浪尽此生 提交于 2019-12-01 09:45:16
问题 Within my iPhone application, I'd like to change the language of the displayed UIKeyboard. How can I do this? 回答1: From the iPhone Application Programming Guide: Depending on the needs of your program and the user’s preferred language, the system might display one of several different keyboards. Although your application cannot control the user’s preferred language (and thus the keyboard’s input method), it can control attributes of the keyboard that indicate its intended use, such as the

-[UIViewController _keyboard]: unrecognized selector sent to instance 0x7b731ac0

南楼画角 提交于 2019-12-01 08:57:03
问题 I am writing an app with 3 viewControllers contained inside of a MainViewController. One of these is controlled through the storyboard and shows ads. The other two viewControllers are displaying information. Depending on the menu button pressed and the viewController to be presented the app determines which viewController to change. So far everything is working well except when ANY textField is selected. This causes the error to display. The instance is the viewController containing the

How to present keyboard inside popover?, ipad passcode lock style

和自甴很熟 提交于 2019-12-01 06:39:05
Is it posible to present a keyboard the way is shown when you set a passcode for your ipad? Unfortunately no, But what i did to replicate this was, built a bunch of buttons like a keyboard inside my passcode view using interface builder. Then linked each button to a command that would change the text field. - (IBAction) button9_clicked:(id) sender{ if ([self textField:theTextField shouldChangeCharactersInRange:range replacementString:@"9"]){ self.theTextField.text=[self.theTextField.text stringByAppendingString:@"9"]; range.location = self.theTextField.text.length; } else range.location = self

Force keyboard to show up via button (iOS)

僤鯓⒐⒋嵵緔 提交于 2019-12-01 06:07:39
I have an UITextView and I don't want check editable option, how can call keyboard via a button? This code doesn't work for me! -(IBAction) yourButtonClick { [myTextView becomeFirstResponder]; [self.view addSubview:myTextView]; } From the iPhone Application Programming Guide However, you can programmatically display the keyboard for an editable text view by calling that view’s becomeFirstResponder method. Calling this method makes the target view the first responder and begins the editing process just as if the user had tapped on the view. So to show the keyboard programmatically, [textView

Force keyboard to show up via button (iOS)

ε祈祈猫儿з 提交于 2019-12-01 03:49:48
问题 I have an UITextView and I don't want check editable option, how can call keyboard via a button? This code doesn't work for me! -(IBAction) yourButtonClick { [myTextView becomeFirstResponder]; [self.view addSubview:myTextView]; } 回答1: From the iPhone Application Programming Guide However, you can programmatically display the keyboard for an editable text view by calling that view’s becomeFirstResponder method. Calling this method makes the target view the first responder and begins the

Add custom UIButton to UIKeyboard's accessory view for a UIWebView

牧云@^-^@ 提交于 2019-12-01 01:09:46
I need to add a camera button to a UIWebView 's keyboard accessory view toolbar (the one that already has the "Back|Next" and "Done" buttons). Is there an easy way to do this? I'm still looking for a better way to do it, but one solution for the moment would be to destroy the bar and recreate it like so : - (void)viewDidLoad { [super viewDidLoad]; UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; NSURL *aURL = [NSURL URLWithString:@"http://www.google.com"]; NSURLRequest *aRequest = [NSURLRequest requestWithURL:aURL]; [web loadRequest:aRequest]; [self.view

Is there a change to the behaviour of UIKeyboardWillShowNotification in iOS 8?

可紊 提交于 2019-12-01 00:24:42
I have had a simple UIView block animation that handles animating a group of text fields into view when the keyboard will show (and animate them back when the keyboard hides). This has worked fine in iOS 6 & 7, but now I'm getting incorrect behavior, and it all points to some change in UIKeyboardWillShowNotification . I set up an isolated project to test this further on a single text field, with two buttons that call exactly the same methods that are fired for the keyboard's WillShow and WillHide notifications. See the results in this video: Video example This seems like a bug to me, or it

Adding Done Button to Only Number Pad Keyboard on iPhone

て烟熏妆下的殇ゞ 提交于 2019-12-01 00:07:28
I am successfully adding a done button to my number pad with this handy code below. But I have an email button that launches the MFMailComposeViewController. How would I make sure the done button does not appear on the email keyboard? // // UIViewController+NumPadReturn.m // iGenerateRandomNumbers // // Created by on 12/4/10. // Copyright 2010 __MyCompanyName__. All rights reserved. // #import "UIViewController+NumPadReturn.h" @implementation UIViewController (NumPadReturn) -(void) viewDidLoad{ // add observer for the respective notifications (depending on the os version) if ([[[UIDevice

Add custom UIButton to UIKeyboard's accessory view for a UIWebView

空扰寡人 提交于 2019-11-30 20:42:01
问题 I need to add a camera button to a UIWebView 's keyboard accessory view toolbar (the one that already has the "Back|Next" and "Done" buttons). Is there an easy way to do this? 回答1: I'm still looking for a better way to do it, but one solution for the moment would be to destroy the bar and recreate it like so : - (void)viewDidLoad { [super viewDidLoad]; UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; NSURL *aURL = [NSURL URLWithString:@"http://www.google.com"];