Toggle navigation
Find or Create a Group
EN
EN
DE
ES
FR
IT
UK
EN
DE
ES
FR
IT
UK
Help
Log In
Sign Up
Help
Log In
Sign Up
EN
EN
DE
ES
FR
IT
UK
EN
DE
ES
FR
IT
UK
Home
Messages
Hashtags
×
×
×
Close
Likes
cocoa@apple-dev.groups.io
Messages
iOS: selectable but not editable text
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
Polls
previous page
#1443
next page
iOS: selectable but not editable text
Gerriet M. Denkmann
#1443
NSTextField can set both isSelectable (true) and isEditable (false). So far so good.
But how to do this in iOS?
I have a textField which is output only (editing makes no sense at all) but the user might want to select, copy and paste the content.
How can this be done?
When the delegate has:
func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { false }
then the field cannot be selected.
Gerriet.
More
All Messages By This Member
previous page
View All 10 Messages In Topic
next page
previous page
#1443
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