Issues with native.textField

Apologies for the delayed response to this. As of my last post I started using storyboard. Took me a bit to apply it to my entire application, but when it was done, I stopped experiencing this specific error.

I still couldn’t fix my problem. I am using storyboard as well. I tried to make some sample apps to duplicate the problem but I still don’t know how to reproduce the problem in sample apps. I am sure it is not my bug as I couldn’t see any error message in the console and the apps is actually not crash but everything become “transparent” with a black or purple colour background (i didn’t add any background colour myself) except the textfield. I couldn’t see my button on screen, however, I could still click on it and it has correct response!!! It only happens on iOS 7. I don’t know what is the combination to reproduce the problem. I am not sure if it is storyboard, widget, my config or build.settings file…

I tried build 2123 today and the problem is still exist.

Can you produce a sample app that demonstrates this issue?

Thanks

Rob

I finally find out how to reproduce the problem. The attached project can produce the problem in iOS 7. I am using Corona build 2014.2123.

If you deploy on iOS 7 device, you will see black screen sometimes. If you deploy on XCode simulator, you will see purple screen sometimes. This happen when placing or removing textfield from screen. However, the apps is not crash, just everything become “transparent” except the textfield.

I found that when I comment out the orientation in build.settings, the problem will gone.

Hi @boscotwcheung,

Can you file this same test project in an actual bug report?

http://developer.coronalabs.com/content/bug-submission

Thanks,

Brent

Sure

Can you post the bug ID number that was emailed to you to this thread?

Thanks

Rob

Case 29546

I think I have the same issue.  I’m creating four native.newTextFields and everything works fine in the Corona simulator, however, in the Xcode simulator I get a pink/magenta screen that overlays my entire screen and displays the four text fields.  

The catch is that the native text fields are inside a function that is only called when an “Edit” button is pressed.  Even without pressing the button - just entering the scene - the fields want to display and a colored pink/magenta screen fills the screen background.  If I comment out the function the issue goes away (but then I have no input fields)!

I’d like to be kept up-to-date on how this is resolved!  Thank you.

*** Update:  The following solved the issue for me ***

Forget about the “Edit” button and separate function above.  The following solved the native.newTextFields issue for me and its behavior is now consistent.  I had the following in my build settings:

orientation = 

    {

        default = “portrait”,

        content = “portrait”,

        supported = {“portrait”,“portraitUpsideDown”,},

    },

Removing the [content =  “portrait”,] line fixed the issue.  No idea why, but apparently this setting conflicts somehow with the native text fields.  So, my new build settings looks like this:

orientation = 

    {

        default = “portrait”,

        supported = {“portrait”,“portraitUpsideDown”,},

    },

I hope this helps.  Cheers!  -Keith