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
0
votes
1 answer

scrolling a scrollView inside of a textView delegate

I have a UIScrollView and contextView. I add UITextViews to it and set the delegate to self so that I can use the textViewShouldBeginEditing method. The textViewShouldBeginEditing is inside the same ViewController.m file, so the VC should be the…
KarlJay
  • 79
  • 1
  • 9
0
votes
1 answer

how to Segue to uitextview from uitableview in swift and use nsattributedtext property

I am developing an IOS app using swift language in which I want to segue from uitableview's row to uitextview to show some text and I want to use attributed text property of uitextview but its not working.How to do that?
Waqar Khalid
  • 119
  • 1
  • 12
0
votes
2 answers

how can I expand the size of UITextView when user starts typing in it?

In my storyboard I have a UIViewController that contains an image view and a text view: In my class I already handle a tap gesture - when user taps anywhere outside of the text view - the keyboard disappears: override func viewDidLoad(){ …
user3766930
  • 5,629
  • 10
  • 51
  • 104
0
votes
0 answers

View hierarchy not prepared for constraint UITextView

I have a bug that only occurs on iOS 8. I have a UIViewController with a UITextField. It's connected to an IBOutlet in Storyboard and the delegate is connected to. My ViewController has UITextViewDelegate implemented in my header file. In my…
el-flor
  • 1,466
  • 3
  • 18
  • 39
0
votes
0 answers

ios redrawing contents of uiscrollview

My UISrollView has subviews which include a textview, following by a uilabel, followed by an imageview. The textview expands downwards, and has its own scrolling disabled. I have a method which detects when the textview gets a new line, and it is…
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
0 answers

scroll a text view up when keyboard is on screen

I have a method on a view controller which scrolls text fields up when focused if the keyboard is on screen. I have tried to do the same thing on a different controller but with a textview but it's not working. Attempt: func…
user2363025
  • 6,365
  • 19
  • 48
  • 89
0
votes
2 answers

IOS textView delegate

I have created a UITextView *mytextview . I want to get event when click textview before UIKeyboardWillShowNotification delegate. Now, When I click textview, is's call UIKeyboardWillShowNotification. After that, it's call -…
0
votes
1 answer

Move UITextView caret to new line when user enter 29 character?

i want only 3 lines in UITextView. And each line will have maximum 29 characters What i did is static const NSUInteger MAX_NUMBER_OF_LINES_ALLOWED = 3; NSMutableString *t = [NSMutableString stringWithString: self.addressTextView.text]; …
Nik
  • 1,679
  • 1
  • 20
  • 36
0
votes
1 answer

UITextView with magnifying-glass and no keyboard

When using a UITextView one usually gets a keyboard to edit the contents; and by touching it one also gets a magnifying glass to help bring the cursor in the desired position. Is it possible to get the magnifying glass to position the cursor but at…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

ios Passing TextView from PushView to PresentingView

I am trying to do the following, and not able to find a straightforward answer.. It is related to this :Passing uitextfield from one view to another. But not exactly. I have a Firstview.m, from which I push to a Secondview.m. The Secondview.m has a…
Arpit Goel
  • 163
  • 1
  • 16
0
votes
1 answer

UITextView Delegates Behaving Differently with Custom iOS Keyboards (SwiftKey)

Using the shouldChangeTextInRange delegate to detect certain phrases when typed in a UITextViewgives different range and text values when alternating between the stock keyboard and custom keyboards like SwiftKey (in identical…
0
votes
1 answer

Get text from UITextView

Is it possible to get the first line of text from a UITextView. I have looked through the UITextView and NSString Class References and can't find any methods that could accomplish this.
John
  • 611
  • 2
  • 9
  • 12
0
votes
1 answer

iOS 7 UITextView's native links don't cancel touch

I think I've encountered a bug in UITextView in iOS 7, but I haven't been able to find any reference to it or discussion, so trying to confirm here that I'm not missing something: The Bug I have a UITextView setup as follows: UITextView *textView =…
0
votes
2 answers

touchesBegan EndEditing not working

I have a number of textfields in a view, and a textView, what I am trying to do is to tab through those UI elements after editing stops and the element resigns the status as FirstResponder. //Code to tap on empty area on screen so key board should…
mdanishs
  • 1,996
  • 8
  • 24
  • 50
0
votes
1 answer

UITextView custom UIDataDetectorTypes

I have read a lot of posts about this yet, but I didn't get to a good result. I would like to, for example, have a UIDetectorType for Hashtags in a UITextView. Isn't there a way to subclass to accomplish this? It seems odd of apple to just have…
user1710004
  • 209
  • 1
  • 4
  • 12