iOS Text Field (JVFloatLabeledTextField) causing odd keyboard behavior - ios

I have a login page on my app that exhibits weird behavior on the iPads but works well on the iPhones. On the iPad username/password fields pop-up the keyboard but as soon as the user types it pushed the keyboard down (see attached image). The text fields are JVFloatLabeledTextField which are UITextField subclasses.
I'm at a loss on where to start short of redoing the whole screen. Any thoughts are appreciated.

Related

TextArea hanging after switchView in iOS only

Good morning everybody working with Gluon Mobile
I have the problem of a javafx.scene.control.TextArea staying on the screen like a layer after switching the view, that is, after calling
Application.getInstance().switchView(...)
from a screen with a TextField and this TextArea arranged inside a VBox (with consent from Gluon, I used the code from their Notes example). The isolated TextArea then appears as if it was layered over the other screen to which the switch took place.
This happens on the iPhone / iOS only, and only if the text area had the focus at least once. On the desktop as well as under Android, or when the focus was never in this TextArea, everything works fine.
Does anybody have an idea what could cause this effect?
Regards
Martin

UITextField Cursor and Keyboard Issue

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.

IOS native keyboard pushing entire webview up - cordova app

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 ?

HTML5: iOS screen scrolls up when keyboard shows up

Say you've got a Xcode app with embedded web view exposing a simple HTML5 page.
This page has a title and an input tag and a nav top bar (position: fixed; top:0;).
When the user tap in it the first time, the whole screen scrolls up to enable the keyboard appears while maintaining the input tag visible, when I tap the enter button.
The issue I face is that my HTML is not restored identically (I mean, it scrolls down back, but my top bar is shifted about 10 pixels below the top edge of the screen.
But when I tap the keyboard hide button, the scrolls restore my initial view, with no issue.
Anyone experienced the issue before? Any clue of what going on or a way to work around this?
Ps: issue is present on iOS 7 (7.1.2). I didn't tested on iOS 8 as my app must support iOS 7.
I finally ended up with adding an explicit keyboard withdrawing by applying blur() the the input as follows:
<input ng-change="$(this).blur()">
This immediately makes the keyboard disappearing, while the hw initial scrolling is reversed.

IOS 7: Two issues with MFMailComposeViewController

I used the MFMailComposeViewController a lot in the past but for some reason now there is a very strange behaviour...that creates lots of problem in the usability of the interface....
Issue #1: fields are not editable or the focus seems wrongly positioned.
I create an email to be sent with an attachment (text or pdf) and each time the controller starts the "cc/bcc/from" fields overlap and are not editable.
if i tap on the "to:" field sometimes the keyboards appears other times it doesn't ...
The "to:"field is the only one editable (in blue) but clearly the focus is not right because sometimes i can edit the email address, other times, it becomes a completely blue box (no text is visible), etc.etc.
At times the "cc:"field is expanded on a row but the tap position is not exactly right and no editing is possible.
Issue #2: the keyboards loads fast the first time, but if i close the composer and open it again, this time the keyboard takes at least 5 seconds to show up.
I tested the process on both iPad2 with IOS7 and in debug mode on Xcode 5.1 but the behaviour is always the same.
What i tried so far:
set the mail composer as first responder, each time i open it: not working
create temporary uitextfields to "pre-load" the keyboard: not working
change the modal appearance from full screen to form sheets/pagesheet/etc: not working
it seems to be memory related,at least the keyboard part, because at the beginning the App uses ~16 MBytes and the second time slightly higher (~26 Mbytes), but not big changes.
The process flow for both issues:
You tap a send button, the mail composer opens, tap in the body and the keyboard appears.(still the email fields overlaps and not editable).
You close it, you click again the send button, you do exactly the same moves but this time the keyboard does not show up , the "cc:/bcc:" fields are indented wrongly (on the left), nothing can be edited.
I have already gone through several answers/questions on this forum but nothing seems to work and this thing is really driving me mad...no more than 4 line of code (taken from Apple docs) and it does not work...
I had the same issue on ios6. (I've not tested this on ios7) Try these two methods before showing the MFMailComposeViewController,
[self.parentViewController resignFirstResponder];
And this one on the mailComposer,
[self becomeFirstResponder];
Note - This answer is for your issue #1

Resources