Hi
I am using textbox for my business app.
On Android it displaying the placeholder on textbox but not iOS devices.
Please help us to resolve this problem.
Thanks
Hi
I am using textbox for my business app.
On Android it displaying the placeholder on textbox but not iOS devices.
Please help us to resolve this problem.
Thanks
This is a known limitation of the native.newTextBox() field. We are trying to determine if this is a bug or if this is as designed. For now, you can set the .text to your place holder value and in the event handler on the start of edit, erase it.
Rob
This is a known limitation of the native.newTextBox() field. We are trying to determine if this is a bug or if this is as designed. For now, you can set the .text to your place holder value and in the event handler on the start of edit, erase it.
Rob
I tested and this is still a limitation, at least on simulator. Can this limitation be mentioned in the Documentation?
http://docs.coronalabs.com/api/type/TextBox/placeholder.html
This page has no Gotcha or Warning that there is currently a problem with textbox.placeholder.
This doesn’t work,
[lua]
– main.lua
– This is to demonstrate a bug in native.textBox.placeholder
local someTextBox = native.newTextBox( display.contentCenterX, display.contentCenterY, display.contentWidth/2, display.contentHeight/2 )
someTextBox.isEditable = true
someTextBox.placeholder = “This is a placeholder that doesn’t show up”
[/lua]
Hi @georgeinspector,
I’m not aware of any oddities on this. How are your tests on an actual device? Which device(s) have you tested on?
Best regards,
Brent
I just copied that code into a quick test project and I got a placeholder. What version of Corona SDK are you running? What version of OS-X are you using?
Rob
Thank you for your quick responses! Here is more information
Corona SDK Version 2014.2511 (2014.11.18)
OSX 10.10.2 (14C1514)
Now for screenshots of the given code
Here is a screenshot of my simulator
Here is a screenshot of my test Nexus
I don’t have access to test iOS devices right now.
It appears to just be a simulator issue… Placeholders do indeed appear on the nexus.
We added support for OS-X Placeholders in (ironically) build 2512. Now that everyone has access to daily builds (Daily Builds in the top menu or http://developer.coronalabs.com/downloads/daily-builds/), I would grab a later daily build.
Rob
Oh! The issue is solved by Corona’s move towards free! That’s great!
Thanks so much for your time!
I tested and this is still a limitation, at least on simulator. Can this limitation be mentioned in the Documentation?
http://docs.coronalabs.com/api/type/TextBox/placeholder.html
This page has no Gotcha or Warning that there is currently a problem with textbox.placeholder.
This doesn’t work,
[lua]
– main.lua
– This is to demonstrate a bug in native.textBox.placeholder
local someTextBox = native.newTextBox( display.contentCenterX, display.contentCenterY, display.contentWidth/2, display.contentHeight/2 )
someTextBox.isEditable = true
someTextBox.placeholder = “This is a placeholder that doesn’t show up”
[/lua]
Hi @georgeinspector,
I’m not aware of any oddities on this. How are your tests on an actual device? Which device(s) have you tested on?
Best regards,
Brent
I just copied that code into a quick test project and I got a placeholder. What version of Corona SDK are you running? What version of OS-X are you using?
Rob
Thank you for your quick responses! Here is more information
Corona SDK Version 2014.2511 (2014.11.18)
OSX 10.10.2 (14C1514)
Now for screenshots of the given code
Here is a screenshot of my simulator
Here is a screenshot of my test Nexus
I don’t have access to test iOS devices right now.
It appears to just be a simulator issue… Placeholders do indeed appear on the nexus.
We added support for OS-X Placeholders in (ironically) build 2512. Now that everyone has access to daily builds (Daily Builds in the top menu or http://developer.coronalabs.com/downloads/daily-builds/), I would grab a later daily build.
Rob
Oh! The issue is solved by Corona’s move towards free! That’s great!
Thanks so much for your time!