Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Writable alert
Started by horacebury Feb 02 2019 07:51 AM

3 replies to this topic
widgets ios alert showalert
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

I'm guessing I'm out of luck here, but does anyone know if it is possible to show a native alert with a text edit field? Something similar to those used by some apps when the user saves something and are required to enter a name.



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,149 posts
  • Corona SDK

I have an overlay with a text edit field to send me a message. It would work to save a file or something? I guess I don't understand the use case.



[TOPIC: post.html]
#3

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

The use case is basically this: https://www.sketchappsources.com/free-source/404-ios-7-popup-text-field.html

 

I'm building this input myself, but as native.showAlert() is a thing, I was hoping there's a way to tailor it to allow text input.



[TOPIC: post.html]
#4

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,149 posts
  • Corona SDK

native.showAlert does not support that pattern. I also looked at the source code and the iOS function is very convoluted since supports ios < iOS9 plus AppleTV. If it was super easy, I was going to make the change for you. Unfortunately, I don't have the devices or the time to test all the permutations that a change like that would require.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: widgets, ios, alert, showalert