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

Update UITableViewCell label using UITextViewDelegate

I am trying to update a UITableViewCell dynamically from a UITextField by using the UItextfields delegate, however it's always a character behind. So if I type the letter h into the UITextView nothing happens in the UITableViewCell however if I type…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
3 answers

How to set "if there is text in text view"

I have a UIButton that is gray when the user enters a viewController. There is also a UITextView. If the user enters text into the UITextView, then the button should turn red, but if the text view is blank, the the button is gray. If was thinking of…
matthew
  • 467
  • 8
  • 23
0
votes
3 answers

is shouldChangeTextInRange is compulsory in UITextViewDelegate?

I have implemented UITextViewDelegate in my ViewController, After setting delegate to my TextView as self.addressTextView.delegate=self; Now i can only set the text as, [self.addressTextView setText:@"Tamil Nadu, India"]; I am unable to edit the…
Rooban Ponraj A
  • 281
  • 4
  • 20
0
votes
2 answers

xcode 4.6 2 textfield equals to 100

I'm using xCode 4.6, and i have a little problem where. In my app I have 2 text fields one says VG and the other says PG (the VG and PG are always equal 100). The user would be able to put on each text field a percentage amount, now lets say a user…
0
votes
4 answers

TextFieldShoudReturn not being called

How can I get the textfield in this method to call textfieldshouldreturn? I'm guessing its not working beause the UIView doesn't have a delegate property, but I'm not sure how to make a UIView I've created within a method conform to a protocol.…
0
votes
3 answers

Issue with updating app and UITextView

I have an app that has a UITextView in it. The user presses a button and the action changes the text on the UITextView. The app is functional and in the AppStore right now, it was built using iOS 4.2. With out changing anything with the code. …
OscarTheGrouch
  • 2,374
  • 4
  • 28
  • 39
0
votes
3 answers

textViewDidBeginEditing - determining which text box is being edited

I have a page with 5 UITextView objects. I use the textViewDidBeginEditing: method to animate the observationComment text box which works fine. But now I want to do the same for the other 4, but I can't seem to work out how to determine which text…
RGriffiths
  • 5,722
  • 18
  • 72
  • 120
0
votes
2 answers

Changing UITextView with if statement from IBAction

I've been searching a lot but it seems like I just can't figure it out. I'm pretty new to iOS development and I apologize if I am doing things completely wrong. Here is the situation. I am trying to switch the content view of my…
ZeroOne
  • 1
  • 2
0
votes
2 answers

Having an ivar 'delegate' in a subclass whose superclass also has same named ivar

I have a subclass defined like this @protocol UMTextViewDelegate; @interface UMTexView : UITextView { } @property (nonatomic, assign) id delegate; @end @protocol UMTextViewDelegate…
unspokenblabber
  • 1,567
  • 1
  • 11
  • 19
0
votes
1 answer

UITextView hide text

I was wondering if it was possible to hide a particular word or expression from the text in a UITextView. If for example: UITextView* txt = @"hello how are you" Is there any way to hide the "you" so that it is not visible to the user (considering…
user2014474
  • 1,117
  • 5
  • 19
  • 36
0
votes
1 answer

Is it safe to call stringByReplacingCharactersInRange in UITextView's delegate textView:shouldChangeTextInRange:replacementText:?

I implemented a customized textview based on UITextView, trying to listen the text change event. So I implemented the UITextView's delegate: - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString…
Hang
  • 469
  • 1
  • 4
  • 18
0
votes
4 answers

Keyboard covering textview on iPhone

I am newbie for iPhone application. Below is what I have... When I enter Item name, I get proper screen with Done option. When I click Done, keyboard get hided. Same happen for Time also. Now when I click on description and type something, I get…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
0
votes
3 answers

UITextView trouble in xcode

So i was reading the description about UITextView's and it says that it automatically hides the keyboard when you press the 'Return' button on the keyboard. But it wasn't working, so I tried creating an - (IBAction)textViewReturn:(id)sender; { …
trludt
  • 1,801
  • 2
  • 13
  • 15
0
votes
1 answer

UItextView Space on nextline event

i have UITextView with lines. here i added text in UITextView, while i click the next line button(return/enter) ,The text start printing before the margin .but the text should start after the margin, so i want to leave space before the text, when i…
Rajendran
  • 141
  • 3
  • 13
0
votes
1 answer

How to set the Textview move up animation based on keyboard in the custom UIView class

I have Custom UIView class in one textview. Custom View class frame set only some one view controller. My thought is when text view delegate methods textviewdidbeginediting animation of textview based on the keyboard height not worked correctly. I…
Ben10
  • 3,221
  • 2
  • 34
  • 61
1 2 3
14
15