uitextviewdelegate Questions
2
Solved
The following code changes "test" in the textView's string to red color but it also has the effect of moving the cursor to the end of the text block when textViewDidChange is called (Aka when any t...
Macaronic asked 21/1, 2016 at 3:32
2
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 p...
Kurtis asked 14/10, 2021 at 9:44
7
Solved
When I set my UITextView programmatically like this:
[self.textView setText:@""];
The delegate method textViewDidChange: does not get called. Is there a way I can find that without making a UITex...
Crewel asked 27/8, 2014 at 22:51
2
If I am typing with the keyboard, then textViewDidChange and shouldChangeTextInRange are always called. But when I change the textView programmatically, the delegate methods aren't called. How do I...
Civet asked 26/9, 2014 at 9:42
18
Solved
I am giving a text view to tweet some string .
I am applying the following method to restrict the number of characters to 140 in length.
- (BOOL)textView:(UITextView *)textView shouldChangeTextIn...
Crater asked 22/3, 2010 at 12:45
2
Solved
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,
shouldInteractWith URL:...
Incoordinate asked 1/10, 2019 at 17:8
4
i want to implement Code by which i can start to insert text at any position of cursor in UITextView in iphone sdk
any idea?
thank you in advance..
i refereed this link: iPhone SDK: How to create...
Adaptive asked 13/1, 2012 at 6:25
3
Solved
I am trying to implement a form of a Terms & Conditions page where the "Proceed" button is only enabled once the user has scrolled to the bottom of a UITextView. So far I have set my class as a...
Retrograde asked 20/12, 2012 at 10:23
7
Solved
my language is not supported by iOS by default, so unicode is not an option so i am using a embedded true type font on a UITextView
it works for the most part, but my issue is like Arabic, and Heb...
Tactics asked 5/2, 2011 at 6:29
1
When using an external keyboard, my UITextView fires a shouldChangeTextInRange message just fine when I press the Backspace key ("backward delete"), but if I press Delete ("forward delete") then th...
Karleenkarlen asked 6/11, 2014 at 17:17
8
Solved
I have a UIView that contains a UITextView. The UIView is initiated inside a UIViewController.
But when I touch the UITextView box, nothing happens. Neither the keyboard appears nor delegate meth...
Yetta asked 1/10, 2012 at 21:13
3
Solved
I am trying to have a textview similar to iPhone messages, where the textview initially has a constraint (height <= 100) and the scrollEnabled = false
This is a link to the project:
https://git...
Marissamarist asked 20/7, 2016 at 1:37
2
Solved
I must be doing something fundamentally wrong, my implementation methods for the UITextViewDelegate aren't firing. I have a UITextView that is a subview of a UITableCellView and the delegates aren'...
Odometer asked 27/9, 2012 at 17:29
2
If I add an image into a UITextView like this:
NSTextAttachment *textAttachment = [[NSTextAttachment alloc] init];
textAttachment.image = image;
NSAttributedString *attrStringWithImage = [NSAttri...
Wildfire asked 10/4, 2015 at 22:34
1
According to the doc,
Marked text, which is part of multistage text input, represents
provisionally inserted text that the user has yet to confirm. It is
styled in a distinctive way. The range...
Stereochemistry asked 8/1, 2014 at 6:8
5
Solved
Before I was using this method....
//TextView is a UITextView
[TextView scrollRangeToVisible:NSMakeRange([TextView length], 0)];
...which would programmatically scroll to the end of the UIText...
Remy asked 3/7, 2010 at 13:2
2
Solved
I have been re-writing my app for iOS 7. It now uses the new TextKit API. I'm nearly complete but there is one more issue that has been causing me headache since I've started doing the transition.
...
Rakehell asked 19/1, 2014 at 18:17
1
I want to have quicktype suggestions to have my own certain application level needed phrases as suggestions when keyboard is open in uitextview.
For example if user types "All" - In quicktype sug...
Padilla asked 4/2, 2015 at 7:0
1
Solved
I'm trying to open a link that my UITextView recognizes within the app. I'm using the UITextView delegate method shouldInteractWithURL to achieve this.
My code seems to work fine for the in app l...
Paneling asked 23/1, 2015 at 0:33
1
Solved
In some sense this question has already been answered at Limit number of characters in uitextview. But my particular case is that I have more than one textview in the same ViewController. So I am n...
Chamkis asked 12/8, 2014 at 19:22
1
I drag a UITextView and hook up delegate with File's Owner.
The textViewDidChange is called only with default keyboard, but nothing happen when input text from my keyboard.
How to enable delegate...
Lathan asked 20/4, 2013 at 0:39
1
Solved
As we know the UITextView is more powerful in iOS 7, but here it performs more fragile. The following code works fine when inputting "rr" with Chinese input keyboard in iOS 6, but crashes in iOS 7....
Spelldown asked 13/11, 2013 at 7:59
3
Solved
I'm new to iOS development.
I have written header file following like this
@interface TextView : UITextView <UITextViewDelegate, UIPopoverControllerDelegate>
in TextView.h.
The implemen...
Skyrocket asked 4/9, 2013 at 7:14
2
Solved
Background
So, with iOS 6 an UITextView can take an attributedString, which could be useful for Syntax highlighting.
I'm doing some regex patterns in -textView:shouldChangeTextInRange:replacement...
Plano asked 22/9, 2012 at 11:49
2
I encountered a problem on the UITextFieldDelegate, anyone can help me will be great appreciate.
There is a UITextView, and I implemented its delegate. Normally all delegate methods called very goo...
Komsomol asked 25/7, 2012 at 5:56
1 Next >
© 2022 - 2024 — McMap. All rights reserved.