My app was running fine on ios 8.4, but now after trying it on ios 9 beta, once the app is opened, the cursor on the UITextfield doesn't show up.
The keyboard doesn't come up. Shouldn't it come automatically?
The app works perfectly fine till ios8.4. Can some one help me out?
After one tap gesture on the UITextField, cursor doesn't show up at all.
Also, I tried checking the tintColor property as well as suggested by some users, but it is default blue.
Is there some specific change made in the way keyboard works on ios9?
A Situation - When I click on Login button, Alert message is displayed and then on pressing ok, the keyboard appears with a cursor but I can type only 1 character and suddenly the cursor and keyboard disappears. Then again, click on login, get the error message, cursor is available, type 1 character and cursor and keyboard disappears again.
Why is cursor on visible when tapped on a UITextField. This according to me must be a simple automatic thing. I have used resignFirstResponder and becomeFirstResponder too.
Anything to do with the Views here? For example, super view or something?
Thanks in advance!
Shrikant Kekane
The situation you have described is not happening when I tried the same.
The steps I followed:
Drag and drop one UITextField in Storyboard.
Give it required constraints.
Build & Run.
Keyboard and cursor both work perfectly in iOS9 simulator.
Related
I am working on a Flutter app. A problem I encountered is that there is no default "Done"- or "Close" button for the numerical keyboard on iOS.
I made an ok solution where the user can close the keyboard by tapping outside the keyboard or swiping downwards. But the ideal solution would be to have a "Done" button in the bottom right corner of the keyboard like Android does right?
I tried the following package keyboard_actions. But it was very buggy in my app. When the keyboard appeared it pushed up the text in the text field.
Why didn't Apple add a default "Done" button for the numerical keyboard? How do you solve this in the simplest and best way?
Thanks!
when selecting a text field on a uiwebview the keyboard isn't visible.
i check the keyboard frame when getting the notice that the keyboard will appear. there IS a frame.
i think it has something to do with the constraints i have to do the layout of the views.
what is the correct (most simple) way to adjust those constraints (if that is indeed the issue) to "make room" for the keyboard?
curiously the little bar that typically appears with the keyboard is visible ... the one that looks like this :
| < > Done |
this is getting frustrating so any help is appreciated as usual :)
i should probably add that the setup i have is a uiscrollview that contains uiwebviews. the scrolling is turned off in the scrollview so as not to get things too confused. everything seems to work as intended .. except this keyboard issue.
I have encountered the same problem before as you have now.
I believe it is triggered automatically by the iOS simulator when accidentally typing with your real keyboard in the text field instead of "clicking on the keyboard" in the simulator.
To resolve this issue, simply go to the iOS simulator, navigate to the Menu bar:
"Hardware > Keyboard" and uncheck "Connect to external keyboard".
The problem should now be solved.
This can happens in 2 cases:
in simulator
if your iPhone or iPad use external keyboard
I'm development an app through titanium. When I was running it on actual iPad, I got a bug that keyboard cannot close if guided access was enabled.
Scenario:
Guided Access is on in settings
Focus on a TextField, keyboard shows up
Triple click on home button, start Guided Access. (With Password). Note, the keyboard is still up for textfield.
Click "Resume" button, return back to app.
Now, if you try to dismiss keyboard, it just stuck there. And keyboard no response until next TextField or TextArea.
And this always happens. I'm not sure if this is a bug from Titanium or iOS itself. I'm trying to replicate by native objective c code.
Does anyone have clue how to fix this?
Thanks
UPDATES:
I've tried to replicate by native SDK. Nothing happened. So I guess this is a bug only for Titanium.
Finally address the problem, when you open the number pad for guided access then go back to app, it will cause the textfield lose focus. So, if user tap/click the textField, then there will be no problem.
And there is another scenario: There are two window, A and B. B has a textField, and I've set it focus when it opened. In Window A, I triple click home button and open the number pad to enter password. Go back to app, open window B. Now since I've programmatically focus the textfield, so nobody click the textField. Now if you try to dismiss the keyboard without touch/click the textfield, you will see the same bug happened before. While if you click the textField, manually re-focus it, there will be no problem.
Strange issue only in iOS7
I do some entry in text field and then press home button of mobile and resume the app again, the data entered doesn't appears and only appears when I again start typing into the UITextField.
Note: Working fine in iOS6
Sample Code
It happened to me too. I replaced the textfield, reconnected the outlets and style it programmatically instead of style by storyboard. Good Luck!
Its because I set border style to none because when I change it to other it works fine
i hadn't touched the code of my iOS app in a while, and since then the latest iOS version became 4.3.2. i upgraded my environment in both XCode and on my device. after compiling my application and running it in both the simulator and on device, the keyboard no longer shows up when selecting editable items inside a webview.
my app's first screen is an OAuth dialog, and as such, I can't get past it without the keyboard, so i tried embedding an edit box in the same parent view as the webview, and it worked! except, the dismiss keyboard button did not work - the keyboard stayed visible even when i pressed it. touching away from the edit box (thus forcing it to resign first responder status) did make the keyboard go away.
i figured it would be something in my webview delegate code, but didn't see anything there that could stop a keyboard from showing.
in the XIB that sets up the webview, i checked that user interaction is enabled, so that's not the problem either. when i touch an edit box in the webview, the edit box enters editing mode - the keyboard just doesn't show.