uitextview

How to catch if an view or UITextField enters editing mode?

I've subclassed an UITextField and inside that, I need to know if the text field is in editing mode or not. When editing mode changes from YES/NO I need to get notified somehow. I tried to overwrite the setter of the editing property, but that doesn't seem to work. Is there anything else? ...

UIKeyboard extra keys.

I am looking for a way to add extra keys to a UITextView's keyboard or add a UIToolbar above it. How might I go about this? EDIT This is for an iPad app and if I was to add extra keys I would need a new row for them in the UIKeyboard. ...

Save UITextView Text Linked to Cell

Hi I am making an iPad app, it currently has multiple UITableViews named like so: monTable, tueTable, wedTable etc... I would like to have a UITextView which is editable. Then any text when the user leaves the text view it saves the chunk of text and is linked to the cell selected in the table. So when that cell is reselected the text...

Force UITextView to scroll down on specific context

Hi , i have UITExtView with (511 , 369 , 571 , 519) context , so my keyboard popups on UITextView and filled some space on the screen , when users type some notes , the UITExtView text moves under the keyboard , i was wondering how should implement specific context for textView to begin scroll down . i use this code but doesn't work ...

How to intercept long press on UITextView?

Total Objective-C / Cocoa Touch noob here, beware. I'm trying to intercept when a user long presses on a UITextView (a magnifying glass then appears with the caret positioner) and then releases the touch, i.e. when normally the "Select" and "Select All" Options appear, after the magnifying glass. I want to replace this with my own custo...

Cursor movement in UITextView on iPad

How to implement the move leftward like pressing the left button on the physical keyboard in iPad? I can get the current cursor position, but I need to figure out a way to calculate the width of the current character and subtract that from the current x position. Is there anyway to calculate the width of the current character? Thanks!...

Ignore case UITextField/UITextView

Hi, I would like to ignore all case sensitivity to be ignored for my UITextField and UITextView. I would also like to know how to detect if the string is upperCase or lowerCase. Thanks. ...

UITextView scroll only horizontally

Hi, I have one line of text that is too long to be displayed in one single line in a UILabel, so I switched to a UITextView. I wanted to display that text still in one line, and be able to scroll horizontally, but instead, the UITextView will wrap the text into multiple lines, and allow me to scroll vertically. So, for the text "This is...

Can you programmatically accept a spelling correction in UITextView?

I have a button that inserts a character into a UITextView. I want this button to behave as the spacebar button does; I want the pending autocorrect suggestion to be accepted upon pressing it. Can this be done? If so, how? Thanks! ...

How to find a pixel-positon of a cursor in UITextView?

I'm developing a simple writing app for iPad. I'm trying to compute the pixel-position of the cursor in UITextView. I spend a few weeks to design this, but I still couldn't figure out to do it. In stackoverflow, Tony wrote one good algorithm to find the pixel-position of the cursor. http://stackoverflow.com/questions/2633379/pixel-pos...

Core text exactly same as UITextView text format?

Hi, I'm trying to set up a CTFrame that exactly matches my UITextView's text format in iPad. First of all, I converted UITextView's text to an attributed string. Then I set up a width and a height of drawing box in which Core Text will draw text. I succeeded to draw text using Core Text, but UITextView and Core Text show slightly differe...

content handling of UITextView between two navigation view

I have view a that has a table cell and a save button. If I touch the table cell, a new navigation view slides in (view b). In the view b, I have one UITextView where I type all the context I need save. And of course there is 'back' button on the top left side of the 'view b'. 'view a' has a save button, it wants save content of the t...

Why can't I set the InputView property of my UITextView on iPhone?

I am trying to replace the Standard Keyboard on the iPhone with a custom one which I have created in MainKeyboard.xib, which is linked to the UIView outlet mainKeyboard. I have the following code that executes when the main view loads, and I have also tried triggering it with a UIButton for testing purposes. [[NSBundle mainBundle] loadN...

iPhone SDK UITextView: How to capitalize words only on the first line of text?

I have a UITextView that I would like to change the auto capitalization type to words for just the first line of the text and reset it to sentences for every other line. What's the best way to do this? My initial thought is that I can calculate the average maximum number of letters that would fit on a line and recalculate that once any ...

How do I make a pretty UITextView that expands as needed (like the one used in the SMS app)?

It should: Expand vertically whenever new lines are added with the return key. Wrap long lines and expand vertically for wrapped lines as needed too. Have a nice pretty border just like UITextField. Support placeholder text just like UITextField. Support friendly actions like UITextField. ...

How To justified the Text in UITextView?

I am having a UiTextView in That I want to Justified the text can anyone help me to do that ...

iPhone SDK: How to pass touches through to a UITextView?

I have a transparent view sitting on top of a UITextView which is responsible for allowing the user to drag images around. However, if the user isn't touching an image, I'd like to pass the touch events to the UITextView so the user can bring the keyboard up, type, copy, etc. just as if there wasn't a view on top of it. How is this accom...

How to make UITextView "Done" button resignFirstResponder?

I am trying to make my editable UITextView resign the keyboard (resignFirstResponder) when the user taps "Done." Using a UITextField, I have been able to do this with the following code: - (IBAction)doneEditing:(id)sender { [sender resignFirstResponder]; } ... and then to attach it to the relevant UITextField in Interface Builder ...

UiSlider Does Not Response After UITextView Resigns FirstResponder

Hi All, I have an UITextView and Some UiSlider On A View. The Sliders Work Well When The View Loaded. The Problem Is They Become Very Less/Slow Sensitive After The cycle, [UITextView becomeFirstResponder]; . . [UITextView resignFirstResponder]; Why is This Happening? Any Solution? ...

Save Text From UITextVIEW ????

Hi Guys! I'm having a problem : i can' find a way to save properly my UITextView in a NSString. I have created 4 UITextViews and i want them to be saved in the same file. Heres the code : -(void)destinataireTextView { self.destiView = [[[UITextView alloc] initWithFrame:CGRectMake(200, 160, 150, 120)] autorelease]; [self.view a...