Questions tagged [uitextviewdelegate]

A text view delegate responds to editing-related messages from the text view. You can use the delegate to track changes to the text itself and to the current selection.

A text view delegate responds to editing-related messages from the text view. You can use the delegate to track changes to the text itself and to the current selection.

@property(nonatomic, assign) id<UITextViewDelegate> delegate

Available in iOS 2.0 and later.

225 questions
2
votes
2 answers

get into a second line in uitextview, UITextView, ios

My view is containing : first name ( UITextField ) last name ( UITextField ) email ( UITextField ) note ( UITextView ) picture is following The codes below is used to handle when you enter a return key -…
2
votes
0 answers

How to allow cursor move to any position in UITextView

I have UITextView subclass with no keyboard, that use buttons for input. I want to allow move cursor by tap to any position, not only to start or end of word. That's how it's works now: That's what I want: I think that solution for this problem…
Konstantin Cherkasov
  • 3,243
  • 2
  • 18
  • 22
2
votes
3 answers

UIScrollView programmatically Scrolling

I have a UITextView inside a UIScrollView that needs to automatically scroll once the user starts editing it. This is because the keyboard will cover the textview. Here is the code - In viewDidLoad: feedBackformView = [[UIScrollView alloc]…
Ashish Agarwal
  • 14,555
  • 31
  • 86
  • 125
2
votes
2 answers

Backspace many characters in a row in a UITextView

I want to check if a user backspaces a character in a textView if there are any of that same character connecting it for it to delete them all... For example if the character I'm checking for is "e" I have the text "easy heeeeeello" and the user…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
2
votes
2 answers

UIScrollViewDelegate methods not working with a UITextView subclass

I have a class MyTextView which inherits from UITextView. I also have a MyViewController which is a subclass of UIViewController. MyViewController implements the UITextViewDelegate protocol and is set as the delegate of MyTextView. MyViewController…
1
vote
1 answer

UITextView Scroll to selected line

I have a UITextView, and when i type in text, the keyboard will eventually hide the text so i can't see it, so i somehow need to move the text "up" while typing. So far, i got to the delegate method textViewDidChange: But still a bit lost? Can…
Seerex
  • 591
  • 1
  • 9
  • 21
1
vote
0 answers

Ignore space after predictive text selection in UITextView

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 space after if func textView(_ textView:…
Umer Khan
  • 193
  • 12
1
vote
1 answer

Detect shift + return key when UITextView is the responder

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. It works when UITextView is not responding by using…
1
vote
1 answer

how to subscribe to a UITextView in iOS swift?

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 did to UITextField. this is what I Done and its…
1
vote
1 answer

iOS app crashes when tapping URL within UITextView

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 the app crash with the following error…
Ruben Dias
  • 41
  • 6
1
vote
1 answer

Delegate method, textViewDidChangeSelection not triggered everytime

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 I am in the middle of the textView, I want to get…
Natasha
  • 6,651
  • 3
  • 36
  • 58
1
vote
1 answer

how to find out the text in UITextview does not required to scroll in iOS

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 at the bottom of the screen. I have implemented…
1
vote
2 answers

Why observer onKeyboardDisplayed is called before textViewDidBeginEditing

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 to reset it to nil). Then on viewDidLoad I add an observer…
syntiz
  • 75
  • 5
1
vote
2 answers

UITextView Problem with scrolling text

I am using UITextView in above screenshot. But problem is when I am trying to scroll text its getting out of screen of UITextView. I have tried by reducing TextView frame but doing that its reducing UITextVIew Frame... How can i maintain same…
Tariq
  • 9,861
  • 12
  • 62
  • 103
1
vote
1 answer

UITextView in tableHeaderView can't find delegate

I have a UITableView tableHeaderView defined in a nib file. The tableHeaderView contains a UITextView. The UITextView's delegate is set to the UITableViewController and the UITableViewController supports the UITextViewDelegate protocol. The…
Kwexi
  • 1,013
  • 10
  • 17