XCode, objective C - Keyboard WILL NOT SHOW - ios

I've taken over the work on an iOS app, I've managed to work quite well with it thus far adding new functionality despite not being a trained iOS developer. However I've hit a patch where I simply cannot get the keyboard to show on screen when I tap on a UITextfield, there are areas of the app where it works but any new areas I add this simply will not work. Is there a standard bit of code that controls showing the keyboard when you tap a text field?
Need help

Keyboard opens up automatically unless you forced to not open.
You can check following, See screenshots.
Enable is checked
User Interaction Enable is checked
If you are checking on simulator try “command + k” from keypad
textFieldShouldBeginEditing delegate returns TRUE
-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
return TRUE;
}

Are you running on a simulator or a real device?

Related

TPKeyboardAvoiding scrollview defaults to wrong return key type 'Done' in iOS not UIReturnKeyNext

I have used this keyboard avoiding library https://github.com/michaeltyson/TPKeyboardAvoiding in many iOS projects.It works as expected but in a project it is producing a weird issue where return key title is always 'Done' instead of 'Next'.Functionality is still correct like tapping on keyboard 'Done' is making the below UITextField first responder and Tapping the last keyboard 'Done' is resigning the keyboard.
I have used it many iOS versions and both Objective-C and swift projects without any issue
Currently using xcode 8.3.2 with swift
Anyone have similar issue or know the reason for this issue.
[]]
Found this on the github page:
"To disable the automatic "Next" button functionality, change the UITextField's return key type to anything but UIReturnKeyDefault."
This could be the reason for your problem.

iOS Keyboard remove iPhone iPad

Something is driving me nuts, may be somebody can help. I am currently testing something in a Universal app with a textField. I defined an action on my TextField (with didEndOnExit)
- (IBAction)textFieldTouched:(UITextField *)sender {
[self.textFieldEnter resignFirstResponder];
_textFieldContent.text = _textFieldEnter.text;
_textFieldContent.hidden=NO;
NSLog (#"Content of field : %#", _textFieldContent.text);
}
When I use it on my iPhone iOS7, I touch the textField, the keyboard appears, I type something, I hit return, the keyboard goes.
When I use it on my iPad iOS6, I touch the textField, the keyboard appears, I type something, I hit return, nothing happens. In order to have the keyboard go away, I need to hit the down-right little keyboard.
It was working on other apps I wrote in iOS6, so why not now ? I have tried to auto-enable return key for the ipad (what is even not enabled for the iPhone) but it doesn't change anything.
Can't be a big thing but it's irritating.
Thanks for your help.

iPhone Safari keyboard to say next vs go

I have a website that is optimized to work on iOS devices. But the problem is that the keyboard always says Go as user fills the form. How do I get the keyboard to say Next until the last entry on the form, where it should say Go? Or alternatively, how do I disable the Enter button entirely?
Again, this is a website. It works everywhere websites work: in browsers. Except I have having this particular problem in Safari on mobile devices.
while changing the input type gives you some control of the keyboard layout the return key label in IOS cannot be customized.
Other than changing it to say Search there are no customizations available. You can disable the functionality of the button using something like this injQuery:
$("#myForm input").live("keyup", function(evt) {
if (evt.keyCode === 13) {
$("#myForm").trigger("submit");
}
});

Why does the Keyboard not show when editing UITextField?

I have a ios8 project in XCode 6.1 using size classes. At somepoint in development, the Keyboard stopped displaying while editing a UITextField. To debug, I made simple UIViewController with a single UITextField in a different storyboard in the project, and the keyboard would not display for that UITextField either.
I then made an entirely new project and a simple UIViewController and a single UITextField and the keyboard DID work correctly.
I've looked at all the settings in the project and could find nothing that looks like it affects the keyboard.
Any ideas on what is going on?
If this happen only in the simulator then go to
Hardware Menu->Keyboard->Toggle Software Keyboard
or use shortcut key
cmd+k
Go to simulator -> Hardware then
then click on Toggle Softwate Kwyboard, then you will get key board for TextField

Assign self to UITextFieldDelegate works in iOS 8 not in iOS 7

In the past i have done subclassing of UITableView and UICollectonView many times, in which i have assigned self to the delegate and datasource, and it worked fine.
Today i tried to make subclass of UITextField and in that I am assigning self to its delegate as
self.delegate = self
where delegate is inherited from UITextFiled.
In above case this is hanging the App forever in iOS 7, but works for iOS 8.
Another surprising thing is, when i try to input the text in it from Hardware keyboard then it works fine but it get hanged on typing characters from On-Screen keyboard.
What may be reason of this, Can any one help me to understand?
I was having a similar issue and I figured it out. The simulator will not raise the keyboard by default anymore. If there is a hardware keyboard available and detectable (for example on a MacBook) the simulator will look for input from it and the simulated iPhone keyboard will not raise. This gives the appearance of a problem with the delegate. All you have to do is in the Simulator's Hardware menu, under Keyboard, unselect the option for "Connect Hardware Keyboard". I hope this helps.

Resources