Entry empty TextField issues on iOS

Hi all

I've been struggling with input TextFields on iOS since a few days now.  Maybe someone here will have a preview!

This occurs by using AIR4.0 and AIR 3.9 (haven't tested more aged) on iOS7 (iPhone 5) and iOS5.1 (iPad 1) (have not tested others).

I have create a TextField input and place it on the stage, and then set the focus to it like this (some of installation code omitted for visibility):

_inputTextField = new TextField();
_inputTextField.type = TextFieldType.INPUT;
addChild(_inputTextField);

_inputTextField.addEventListener( FocusEvent.FOCUS_OUT, loseFocus );
_inputTextField.addEventListener( KeyboardEvent.KEY_DOWN, keyDown ); 
_inputTextField.addEventListener( Event.CHANGE, inputChanged );

stage.focus = _inputTextField;
_inputTextField.setSelection( _inputTextField.text.length, _inputTextField.text.length ); // Place cursor at end
_inputTextField.requestSoftKeyboard();

Here's what happens on iOS:

(1) if there is text in the textfield object, this code works perfectly.

(3) if the field is empty, the below problem (I think it's because setSelection is impossible to define a selection)

(2) if I leave aside the line setSelection, even with the text in the field below the problem also occurs

(4) if there is text, and I manually hit backspace to delete it all so that the text field is empty, there is no problem

The problem:

In case of problems, here are the symptoms:

(1) the text field is the right size/position, but the police is very small and is a serif font

(2) the KEY_DOWN event fires to ENTER (not for other keys)

(3) the CHANGE event is triggered only intermittently. Seems to be when the BONE suggests alternative spelling etc.

(4) on FOCUS_OUT, _inputTextField.text reading gives an empty string, even if the text is there

When there is no problem, textfield size, position, font etc. style is fine.  All keys and change of fire events and reading of textfield.text gives good chain.

Any help is appreciated!

Peter

Solution:

A TextField (textField.type = TextFieldType.INPUT) entry empty will cause problems on iOS unless you set IncorporerPolices to false.  The problems are extensive: no events fired. incorrect formatting; Cannot read the text in the field.  If the TextField entry contains text in, then IncorporerPolices seems to work ok, but safer to always set it false on iOS.  I have an indicator of compiler for iOS for cross-platform development that sets IncorporerPolices to false and font Helvetica on iOS for text input fields.

Secondly, I had forgotten to put on the textfield defaultTextFormat at the same time as the parameter setTextField.  That is why the first time the text is small, and the second time it was ok.  Definition of defaultTextField guarantees that all the new text has the correct formatting.

Tags: Adobe AIR

Similar Questions

  • Empty list of dictionaries ios 9.3.2 - 9.3.3

    There is not any dictionary show/download after defining and managing in safari, ibooks, note. Just empty list of lines. Reset all the settings and update 9.3.2 9.3.3 no help. It happened after the update from 8 to 9 ios.

    I have the same problem.

    I bought iPad Pro and restored backup of old my iPad Air. Then update 9.3.2 9.3.3. as a result now after the selection of text in any program 'not set' shows no content and calls "dictionaries" indicates an empty list of availabl/downloadable dictionaries.

  • Issues with iOS 9.3.3?

    Anyone had any issues since the upgrade to iOS 9.3.3?

    Nothing at all... do you need help?

  • Cards and rental issues with iOS 9.3.1

    So, it seems that some iPhones have been affected by the latest 9.3.1 update when using maps and location services.

    Since my update to 9.3.1 new iOS, both of my APPS of the map no longer work.

    I went to the Verizon store and they said they had 6 other customers with the same question this week come in the store, but could not help or has a solution. They said it was a problem with the new ios

    Okay, I'll be happy to take a look with you. What seems to happen?

    Well when I enter an address in MAPS or GOOGLE MAPS at random falls a PIN for my site no where close to where I really am.

    He will say that the destination is, and then all the c apps is they state "loading".

    then the cards just freeze and there is no gps in real time or the point "you are here" never moves...

    OK, so the location is never load and if so it is not updated to become precise?

    fix

    and even when I tap on the arrow to refocus or start again the directions... just it freezes or trying to load...

    and then will never give real guidance... because my original location on maps... is leagues where I'm really... or let me down in the middle of a wooded area, etc.

    Ok thank you. I know how it is important for maps working properly! I'd be keen to have fixed too.

    I completely deleted the Google maps app and reinstalled it... with no fix... same issues

    It is a problem that we've seen happen from time to time after this update. In some cases a full restore to the factory settings and then restore a backup to the phone set. Otherwise it will be a bug problem which is released with the 9.3.2 update which should hopefully will come out soon.

    also, I backed up my phone and deleted everything with a factory reset...

    always had problems even after

    even after reset and reload the iOS again... nothing works

    OK, so it seems that yours will be the one who will have to wait for the 9.3.2 update with bug fixes for the location and accuracy.

    Therefore, it does not mater if I buy another maps application? still underway to have the same problems with the gps and location?

    You can certainly try each of them have different compatibility requirements, but we found that most of these cases concern the location services on the phone itself.

    and I can't get rid of the 9.3.1 iOS version? and go back to the old version?

    If you had a backup of an earlier version, you can restore and then use the backup of the old. Just, you lose everything that you have current data.

    Hmmm... is in fact phone... like three of my friends who have an iPhone 5, iPhone 5 c and the iPhone 6 have no problem...? ! ? ! Just me...

    It is not with all phones. It has been an intermittent case so far. There is no rhyme or reason as to why some phones have had problems with the location after the update.

    Hmmm

    If no solution... and simply live with it until a new iOS comes out, and who knows how long it will be...

    I know that the update is being developed because it contains bug fixes for a few different issues. However, I'm sorry I don't have an exact date.

    Just a question - when you deleted everything for a factory restore - did restore like NEW or from a backup?

  • Issue of iOS 10 CarPlay

    Each update to iOS 10 and set to upgrade to the iPhone 7, CarPlay playlists being totally out of order.  In other words, although it lists the correct reading lists, the order of these playlists on the screen of the car are wrong.  I can play them in the right order so I it works through my phone, but it will play them in the wrong order if I try to run through the CarPlay screen.

    Hi phisto here!

    Welcome and thank you for bringing your question about the order of the playlists of CarPlay for communities Support from Apple.  I love having my music everywhere wherever I go, including reading lists, so I'm happy to help you today.

    When running into problems with CarPlay, there are a few recommendations, but one that seems most useful will consult the car manufacturer for updates to the firmware.  It may be that since iOS 10 is released, the firmware must be updated as well.

    Get help

    If CarPlay does not work as you expect, here's what you can check. After each step, try to use CarPlay again.

    1. Make sure that Siri is turned on.
    2. Restart your iPhone and your car. Depending on your car, you can see the CarPlay home screen when you turn it on. If you do not, look for the CarPlay logo on the screen of your car.
    3. If possible, connect your iPhone to a different USB port in your car.
    4. Try a different lightning to a USB cable. Make sure that the cable is certified.
    5. Update to the latest version of iOS.
    6. Check the manual using your car. You may need to install updates of firmware for your stereo.

    For more information on CarPlay:

    Configure CarPlay to use with your iPhone

    Have a great day!

  • Stability issues major iOS 10

    I have an iPhone 6 and an iPad Air. Both devices have the same problems.

    I have many problems with applications to crash and especially devices constantly enter a soft reboot State where the phone seems to restart all its processes showing me the circle of rotation for a few seconds. There is no method for how this happens, sometimes, I just wrote a message or go to a Web site. I could be a navigation map or scroll Instagram and the phone will restart just.

    I tried to do a complete restore DFU thinking that would solve the problem and there is not. I am running the latest version of iOS 10.

    Is anyone else having problems like this, and you have no idea how to fix this?

    I have very similar problems with our iPhone 6. We have updated to iOS 10.0.2 and now the iPhone 6 just turns off (as if you were doing a hard reboot) and then tries to restart. Reboot then seems to stick on cell phone rather than a Wi Fi connection. The serious part of this all is do not realize you that the phone turned itself off until, to go to the for use. We just had our daughter on the phone saying that she could not get any response until fortunately I noticed that the phone had extinguished itself self again.

  • issue text iOS 10 speeches

    In the case of iMessages or other applications, when I press the microphone icon to use the speech to text, the speech feature opens but then it takes about five seconds before there is a beep to begin to speak and convert speech to text.  In iOS 9 it was immediate... it is really annoying.

    Hi Hawkeye222,

    I understand that you experience an unexpected delay when you try to use Dictation on your iPhone. I know it's important to be able to quickly enter text with this feature, so I'm happy to help you.

    Did you have a troubleshooting for this on your own? If this isn't the case, we will begin by updating this feature. We can do this by opening settings > general > keyboards, then scroll down and disable the dictated. Leave it for a few seconds, then turn it back on and test.

    Thank you for using communities Support from Apple. See you soon!

  • Issue of IOS 10.0.1 update

    This may seem important to some not but I was wondering if anyone noticed on a 6 sec more what update to ios 10 switch on the side of the phone used to have a balance vibrate when returning to silent and now its got a pulse vibrating or at least mine doesn't. I want to just make sure that my side button works correctly.

    P.S. I have no idea if I still posted the good community haha sorry if I do not have.

  • Bluetooth issues with ios 9.3.4

    Since upgrading my iPhones 5s and 6s to ios 9.3.4 Bluetooth will not connect on my iPhone (without audio). It happened with some other ios updates. The Apple technicians check these discussions? (Of course, the said Bluetooth device has established a link, but there is no sound!)

    Note that my iPad is still running ios 9.3.2 and Bluetooth works very well (big audio). Also note that I am able to listen to podcasts, novels, etc., through hearing aids Siemens wireless. Works great!

    Hello

    Update iOS 9.3.5 iPhones.

    Tap Settings > general > software update

    If this does not help, on an iPhone, tap Settings > Bluetooth > on and then turn off Bluetooth then under tension.

    If it makes a difference, do the same for the iPhone of the sentence.

  • Issue of iOS 9.3 Bluetooth disconnection

    I noticed that * might * have a bug with iOS 9.3.  All my devices using bluetooth now seem to disconnect randomly when using.  All my cars, headphones, bluetooth etc. soundbars have met randomly ~ 10 second interruption in the connection during normal use.  Devices will reconnect sometimes, other times I have to turn off the accessory and start up.  What happens with a 6s and is verified as event at least 6 different various vintage accessories using bluetooth.  Everyone has noticed this after the upgrade to 9.3?  Before application of 9.3 I had never seen this error before.  I also had this happen with at least a helmet on my iPad Pro using 9.3 as well.  I did the reboot standard/forget and repair etc and nothing seems to fix this.

    The confirmation that it is in fact a problem or advice would be appreciated!

    I have the same problem on iPhone 6s, iOS9.3

    Had no abandonment before that.

  • What re-entry network parameters are in IOS 9.2?

    I remember that when I use the reset network settings in my old iPhone 4G, it removes all known wifi networks, paired Bluetooth devices and carrier APN and I now have trouble in my iPhone 6 s more like it keeps lose cell signal and I have reset network settings, but I noticed that it only deleted all known wifi networks but does not remove the carrier APN or Bluetooth devices paired so that restore network settings exactly in IOS 9.2?

    Does anyone here know?

  • New account started, issue of iOS

    Hello!

    For the first time, I just signed in a subscription to creative cloud brand new, full. Now, I have a question.

    I install a lot of Adobe software on this computer. This subscription also offers anything for use on an iPad? I also use a Mini iPad running iOS 9, so I thought I should ask.

    Thank you!

    Hi PennSoil,

    Please see the link below for Ipad applications:

    Adobe mobile, iPhone, iPad, Android apps | Adobe Creative Cloud

    Hope this helps!

  • Performance issues for iOS with high resolution.

    I did an application with a resolution of 480 x 320 for iOS. It works very well.

    I remade it with a resolution of 960 x 640. In the AIR for iOS settings I set the resolution to 'High '.

    The great app looked at, but there is a noticeable decrease in performance.

    The app worked in the same way as the original app of lower resolution, but it had been delayed.

    Does anyone else have this problem?

    I'm doing something wrong?

    With my game, I got about 60 images per second on the 3GS and nearly 50 on the iPhone 4, with the keen. I had about 10 frames per second additional using: stage.quality = StageQuality.LOW;

    2.6 air. I tried with Air 2.7, but it seems that this command cannot be used here (?)

  • Navigation for some entries on the issues of monthly closing and end of month closings

    Hi Experts


    A few entries on the month end close and
    What types of emissions be meet when closing (refer to any).

    Navigation for end of month closures

    In the case of the inventory: the monthly accounting period closed, you must make sure that there no transactions shipping processed, unknown of the important operations, waiting for TEC costing transactionsm etc... The number of these kinds of operations should be zero. For example, if there is no delivery of unprocessed transactions which could be stuck/wrong during the execution of Program Interface travel stop, then you cannot close the period for that month until that you delete these transactions. Check metalink, 262979.1 to the same note.

    Navigation is the inventory > Cycle farm accounting > accounting periods in the inventory. Click on the button waiting to see pending transactions. If there is NO resolution required to be done, you can close the period INV for this month.

    Kind regards
    Agnes

  • issue of iOS 10 Bluetooth in car

    It seems that apple rushes on a product that gets worse and worse every time. How Bluetooth can work a day with ios9 then, not with ios10. Who can screw this up? You have already good writing... it hurts my brain that the company on top cannot get out of their own way and create a simple product to work more. It is God awful and obvious that they lack of any vision of the future.

    This article can help you get help to connect an accessory with your iPad, iPhone or iPod touch - Apple Support Bluetooth

Maybe you are looking for

  • Skype opens apparently two outgoing calls at once

    It's on Fedora 17 for the moment, but if I make a call (even the Skype test call), Skype seems to put in place two (or more) calls with on a three second delay between them. So audio is intercalated between calls and it sounds terrible. Has anyone el

  • No device will update apps iOS9

    For the past 3 weeks, I can't get one of my iOS apps Update 9 devices.  Air iPad and iPhone 6 all say update requested for iOS9.1 but nothing happens.  I have 47 apps on my iPad and 35 on my iPhone that need to be updated and I have chosen items indi

  • Impossible to activate Windows Firewall

    I had the problem of malware for the last 2 days, and I tried everything this suggested (ie. installation of anti-malware from malwarebytes.org, run scans on a hourly basis, by turning on the automatic updates) and the problem seems to be growing.Las

  • HP Photosmart C4780: Factory Reset for HP Photosmart C4780

    I recently started using a new wireless router after a move, and I'm able to get my computer and my printer on the same network. I tried to figure out how to change the network that connects the printer, but I was completely failed. I did a lot of se

  • CPU Maximum frequency never exceeds 31%, even under load.

    Windows 7 x 64 runing. Brand new X 220, less than 24 hours old. All windows updates have been applied, etc. Power settings Windows resource monitor reports that the maximum frequency of the processor is 31%, regardless. I plugged on current alternati