Toggle navigation
Find or Create a Group
EN
EN
DE
ES
FR
IT
UK
Help
Log In
Sign Up
Help
Log In
Sign Up
EN
EN
DE
ES
FR
IT
UK
Home
Messages
Hashtags
×
×
×
Close
Likes
Apple-Dev | Cocoa
Messages
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
Polls
previous page
#1110
next page
Advice on implementing a URL Text Field
Rick Aurbach
#1110
I am looking for some advice and/or suggestions on implementing an iOS text field with the following properties:
The user can enter text into the field easily (via keyboard, pasting, etc).
If the contents of the field is a URL, then a tap in the field will be recognized as a request to open that URLĀ
BUT, even so, the user should still have a way to edit that URL text.
I was thinking about something like:
A tap in an empty field (or a field containing text which is not a structurally-valid URL) means editing.
A tap in a field containing a structurally-valid URL means "open URL"
A long-press in a field containing a structurally-valid URL means editing.
But I'm not particularly wedded to this idea (particularly if you have a better one!)
If you've tried to deal with an issue like this, I'd love to hear from you. (And if you have some code to share...)
Thank you. And for everyone in the US, Happy Thanksgiving.
Rick Aurbach
More
All Messages By This Member
×
previous page
View All 2 Messages In Topic
next page
previous page
#1110
next page
Join
cocoa@apple-dev.groups.io to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to Groups.io Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of cocoa@apple-dev.groups.io?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More Options
More
Home
Hashtags
About
Features
Pricing
Updates
Terms
Help
Twitter
Toggle navigation
About
Features
Pricing
Updates
Terms
Help
©
2023
Groups.io