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.
Related
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.
I am developing an app (IOS platform) using HTML5, CSS3, angular and cordova(3.8) and stuck with an major issue.
I have a page with footer having three buttons. On click of each button a modal comes up from the bottom. Modal position is set to fixed and inside it as scroll-able container. scroll-able container contains a text area where user can input some text.
Whenever the modal comes up, text area is focused so that keyboard comes up by default. The issue is whenever native keyboard comes up webview is pushed up and entire modal gets scrolled.
I saw same issues been posted by others and I tried few solutions mentioned in reply for those questions like using ionic keyboard plugin, setting scrollTop to 0 on textarea focus. But nothing worked out.
In config.xml, I have set DisallowOverscroll to true.
It would be great helpful if someone help me with this issue ?
I'm trying to design a custom keyboard for iOS 8. Here are my development steps:
1. Created new project (Single view)
2. Created a new target: File > New > Target, and in the iOS template group chose the Custom Keyboard template.
Then I tried to enable the keyboard based on the documentation steps, which are:
1. Run the app
2. In iOS Simulator, press home button (Command+Shift+H)
3. Go to Settings > General > Keyboard > Keyboards.
4. Tap Add New Keyboard.
5. In the Purchased Keyboards group, tap the name of your new keyboard. A modal view appears with a switch to enable your keyboard.
6. Tap the switch to enable your keyboard. A warning alert appears.
7. In the warning alert, tap Add Keyboard to finish enabling your new keyboard. Then tap Done.
My problem is in step 5. The modal view does not show a switch to activate the keyboard, it shows an empty view like bellow:
I clicked on Done button and it shows my Custom keyboard in activated list:
But when I want to use this keyboard, for example in spotlight, it won't show my keyboard
Clicking the done button will activate the keyboard. There are some definite bugs in those menus.
To change keyboards, you can also try just tapping on the button to change keyboard, rather than holding it like you were in the last screenshot.
Also, it looks like you have the language for that keyboard set as persian, and my guess would be that it is not appearing because your system language is not persian (or the text field you are typing in doesn't support persian).
I wouldn't be surprised if there are other bugs in the simulator that would affect this. I'm glad to hear you were able to get it working.
After you click done, it should install the keyboard, even if you don't see the list in the settings table.
About the keyboard not showing up - you need to kill the app before running a new keyboard. it's a known issue on the simulator.
good luck!
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.
I have an UIView work like a textEditor with can become first responder to show keyboard. When my UIView with keyboard is showing, I press home button to put app to background and open other app, open a file to my app. The problem is the keyboard is not automatically shown after the modal viewController is dismissed.
I have a check and see: the isFirstResponder of my UIView is YES. But the keyboard is still not available. At that time my application have 2 windows, but the second window does not contains keyboard as usual.
It's weird. Anyone have this problem like me ?
Note that this issue is only on iOS 6.0.