Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
227 views

Currently, we are implementing an undo/redo feature in UITextView. However, we cannot use the built-in UndoManager in UITextView because we have multiple UITextView instances inside a UICollectionView....
Cheok Yan Cheng's user avatar
0 votes
0 answers
373 views

I am having a problem and have searched all across StackO and did not see a solution. I have a UITextview extension with TextViewDelegate that I call inside of my VC so that i can have a placeholder ...
aaron's user avatar
  • 11
1 vote
0 answers
152 views

I found something similar to my problem checkout here but it does not work for me: link Thid UITextView delegate method calls twice If we tap on predictive text 1st call insert text 2nd call insert ...
Umer Khan's user avatar
  • 203
1 vote
1 answer
746 views

I want to detect if the user presses either just "return" key or "shift+return" key on the external keyboard to perform two different actions when the UITextView is the responder. ...
Pranav Badgi's user avatar
0 votes
1 answer
668 views

i am not using storyboard for this application so here's my SceneDelegate willConnectTo function func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene....
Omar Ghanem's user avatar
0 votes
3 answers
1k views

I have a textfield population phone number. When i am entering phone number i am checking validation for a invalid phone number. i am using delegate method "textfield should change characters&...
Ios Developer's user avatar
6 votes
2 answers
2k views

crash example The above article is a problem found by a netizen on the forum. Recently, I also found a similar crash stack on firebase. I guess it is also caused by this reason, and it may be the ...
Jersey's user avatar
  • 421
0 votes
1 answer
229 views

I have a text view inside a table view cell that can contain URLs. When the user taps on the URL, I want to present an alert to ensure the user wants to continue before handling the URL. I'm trying to ...
Jason's user avatar
  • 826
2 votes
1 answer
534 views

I am fairly new to IOS development and working on a small project, I am trying to subscribe to UITextView using Rxswift. However, I can't seem to find any way to do so online or by following what I ...
user avatar
-1 votes
1 answer
191 views

I have a UITextView, which automatically grows according to the user's text input. I'd like to prevent the UITextView's bottom anchor from going under the keyboard, or I'd like to autoscroll the view ...
user avatar
1 vote
1 answer
2k views

I'm trying to setup a UITextView with multiple links within the text. My implementation is based on the suggestion described here. Most links work as expected, however tapping on some of them makes ...
Ruben Dias's user avatar
1 vote
1 answer
671 views

Can someone explain about when to use and how difference of them ?.
Nawin P.'s user avatar
  • 311
3 votes
1 answer
1k views

I am using a UITextView in a SwiftUI app in order to get a list of editable, multiline text fields based on this answer: How do I create a multiline TextField in SwiftUI? I use the component in ...
Clifton Labrum's user avatar
1 vote
1 answer
470 views

I have a UITextView embedded in a UITableView Cell, CustomCell. If I tap the return key when my curser is at the end of the text, I want to create a new cell below that cell, but if I tap return when ...
Natasha's user avatar
  • 6,913
1 vote
1 answer
318 views

I am showing the terms and conditions in the UITextView. when users reached the last line of the text in the UITextView and then only enabling the button (which navigates to the next screen) available ...
Rakesh's user avatar
  • 29
0 votes
4 answers
1k views

I have a multi-line UITextView and sometimes the text wraps several lines. I want to get the text from it with line breaks from what is visible on the iphone screen. This is useful because I have a ...
MaxSped's user avatar
  • 89
1 vote
2 answers
217 views

My App is in swift. When I edit a UITextField, sometimes the keyboard hides the field. So I use the delegate textFieldDidBeginEditing to set an "activeTextField" (and textFieldDidEndEditing ...
syntiz's user avatar
  • 85
0 votes
0 answers
669 views

I have a UITextView that works great in iOS 12 and 13 but not on iOS 11.4 and below. This textView has a text that 2 parts need to be clickable and open a webview (the common Privacy Policy and Terms &...
Joan Cardona's user avatar
  • 3,711
3 votes
3 answers
2k views

I want to listen for every text change in UITextView. The setup is very trivial. override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) NotificationCenter.default....
evilgeniuz's user avatar
0 votes
0 answers
181 views

Hi I'm new to iOS app development. I am implemented an UITextview to add multiple address separated by comma I need to apply a style bubble when user separates the email by pressing comma or space or ...
Swiosift's user avatar
  • 143
-1 votes
1 answer
533 views

Need help on how to do a text input validation to a UITextView. Many help is there for UITextField, but I can't find the right solution for this textView input validation. My expectation is to a ...
Balaji Anandan's user avatar
0 votes
2 answers
2k views

I have a uitextview subview in an inputContainerView as it may appear in a messaging app. Programmatically, on load, the height anchor of the uitextview is set when the inputContainerView is ...
Chris's user avatar
  • 306
3 votes
1 answer
564 views

I have a UITextView in a ViewController. I've implemented shouldChangeTextInRange delegate method from UITextViewDelegate. The range value I obtain through the above delegate method for deleting a ...
Sarath Kumar Ganesan's user avatar
-1 votes
1 answer
260 views

I have doubts when i implement the delegate method textFieldShouldReturn of UITextField, I don't know what's difference between the return value. I have tried return false and return true in it, but ...
Chow's user avatar
  • 33
2 votes
1 answer
729 views

I have been struggling to set create this, I have read numerous posts on here, but do not understand what I am doing wrong. I have a UITextView. I would like it to expand in height, up to a number ...
Tim J's user avatar
  • 1,251
1 vote
0 answers
33 views

I have a UITextView that I want to be able to recognize another developers app links. The iPhone notepad app detects the link from that developer and when i tap on it notepad opens the other ...
OscarTheGrouch's user avatar
0 votes
1 answer
902 views

Here is my Sample Code: class ViewController: UIViewController, UITextViewDelegate { @IBOutlet weak var textView_editingView: UITextView! override func viewDidLoad() { super.viewDidLoad() ...
Dhairya Uniyal's user avatar
15 votes
2 answers
4k views

I'm using the UITextView delegate method to do some custom work like opening a in-app browser when user tapping on URL or attachment: func textView(_ textView: UITextView, ...
kukushi's user avatar
  • 647
1 vote
1 answer
644 views

I've implemented changing the height of UITextView dynamically when height reaches a certain value by following this solution https://stackoverflow.com/a/38454252/12006517 This works fine however ...
Kamil's user avatar
  • 49
0 votes
1 answer
86 views

I have this swift file where I'm trying to create a custom class to handle placeholders for multiple text views on one page. I prefer a separate class because I think its cleaner to handle multiple ...
Maxwell Omdal's user avatar
0 votes
2 answers
2k views

I have a UITextView to let users type-in comments for some audio file they have just recorded. I would like to limit the amount of the "\n" (newline characters) they can use to 5 (i.e., the comment ...
NotationMaster's user avatar
-1 votes
1 answer
831 views

Original post: As suggested from the title. I have made sure that when the cell is initiated in the cellForRowAt method, the cell's textview will be assigned a delegate from within the method. In ...
qsmy's user avatar
  • 433
2 votes
2 answers
1k views

I'm working on an app where the user needs to be able to type 'forwards' but is not able to delete anything (to go back and edit for example) that has already been typed. There are a few answers that ...
nc14's user avatar
  • 559
1 vote
2 answers
156 views

I want to check if the user types specific phrases in a UITextView for a science app. I have this current code that creates a string of the last 20 characters then checks if that string contains a ...
a.wip's user avatar
  • 69
3 votes
1 answer
506 views

I have a library I’m building that needs to keep track of text entry into a UITextView in order to keep track of positions of certain sections of text. Most cases are handled fine within the textView(...
Steve's user avatar
  • 951
1 vote
4 answers
2k views

I've got a UITableViewController with two custom cells - one contains a UITextField (for the user to input a title) and the other contains a UITextView (for the user to input a description). Whenever ...
ADB's user avatar
  • 729
2 votes
3 answers
2k views

I have 2 separate textViews that I want to trigger an event when each of them are tapped. the termTextView triggers fine, but when termTextView is triggered first, the definitionTextView does not ...
CherokeeJack47's user avatar
3 votes
0 answers
283 views

I have UITextView in app, Its used like text editor app. When typing long text and typing fast textview cursor position behave weird, its jumping like typewriter. You can find GIF from below link. On ...
Dipen STL's user avatar
0 votes
1 answer
1k views

Help me please implement UITextView, which will be able to recognise @. When I'm typing characters of the username required after @, there is filtered tableView with the username appearing, in which I ...
Marat Appleseed's user avatar
0 votes
1 answer
266 views

I am using a dynamic textview. func textViewDidChange(_ textView: UITextView) { let str = textView.text! as NSString let size = str.size(attributes: [NSFontAttributeName: UIFont....
Faheem Rahman's user avatar
0 votes
1 answer
992 views

When i am pasting the text in UITextView then some extra space is getting added into it. But when i scroll it then the textView is fitted according to the content. In textViewDidChange, textView ...
cherry_4's user avatar
  • 208
1 vote
1 answer
2k views

My goal is to log all the links that the user clicks on. The links are embedded in a UITextView inside a table cell, and when a user presses the link, I want it to call a function that prints the url. ...
haedaldal's user avatar
2 votes
0 answers
431 views

I am creating a UITextView for use as a rudimentary IDE. When the user pastes text (code) I am modifying it so that it fits inline (correctly indented) with the other text. However, I am also coloring ...
Anters Bear's user avatar
  • 1,996
2 votes
0 answers
120 views

I have an iOS Application. When the user clicks on a textview, the cursor is very small initially. This is what it looks like: As soon as the user begins typing, the cursor changes size and becomes ...
Everett's user avatar
  • 377
-2 votes
4 answers
1k views

In the past, to dismiss the keyboard after a user hits return I would simply override the TextViewShouldReturn function. However, upon re-downloading Xcode (version 9.3.1) it seems it is no longer a ...
Studwell's user avatar
  • 125
1 vote
2 answers
568 views

I have a XIB ProfileView contained within a custom UIViewController class Alarm. ProfileView has a subview UITextView, and I want to call UITextView delegate methods from my custom class Alarm instead ...
Austin Berenyi's user avatar
0 votes
1 answer
2k views

I want to count newlines ("\n") in a textview. Or, more specifically, I want to make textview box to count the characters when typing ( +1 ) in label. Also count ( +2 ) when the text have new line ...
Ali Fadlallah's user avatar
1 vote
1 answer
401 views

I have created a UITextView object and when I interact with it in the Live View, the keyboard appears in the UI and the only way to enter text seems to be from that keyboard. Is this a recent change ...
Harshita Arora's user avatar
0 votes
1 answer
352 views

I'm currently working with NSRegularExpressions (regex), which I'm building a markdown regex. I think that my approach on the way to change the text that matches the regex isn't the best one, and ...
Ivan Cantarino's user avatar
1 vote
1 answer
2k views

I would like to be able to effectively use a UITextView as a button in my Swift iOS application. When I tap on the text view, I don't want it to be editable, but I want it to change the background ...
aequinox's user avatar
  • 135

1
2 3 4 5