uitextview

UITableView won't scroll after editing view frame and origin

I'm trying to implement a UITextView in a table cell at the bottom of a table view. I've tried the suggestions here http://stackoverflow.com/questions/594181/uitableview-and-keyboard-scrolling-problem, and other solutions as well, but they're a bit different because I have to artificially add extra height to the current view in order to...

Can't get keyboard to resign consistently with UITextView in UITableViewCell

I have a UITextView within a UITableView cell. I have been unable to get the keyboard to consistently resign after editing. Detecting DidEndEditing hasn't worked. Adding my own "done" button to the toolbar brings intermittent results. Advice? (Note: This is UITextView not UITextField. Thanks) ...

Font size in TextView

I just plunked a textview down on a view, and found that the attributes inspector in IB doesn't seem to allow changing font size. Is that possible, or am I stuck with the default size? Thanks in advance for any help. John Doner ...

Problem setText UITextView

Hi i have a problem. I have 2 viewcontroller, in the first there is a mapView that implements the function "calloutAccessoryControlTapped" to tap a button on an annotation on the mapView; in the second there is just a UITextView. I want to change the text of the UITextView (and show the SecondViewController) in the second controller once...

UITExtview gains an extra line when it should not

I wonder if there is someone out there that can shed some light as to what is happening in my app. I have created a multiline text box using the UITextView. When the view loads it is a single line textbox and as the user types out their message I increase the size according. Pretty much how the SMS app works. The problem is it is doing ...

Hide UIMenuController using UIMenuControllerWillShowMenuNotification

Hi, I have a UITextView(not editable). When user tries to select text I want to hide the Select | Select All menu. Is there a way by which I can hide using the Global notification UIMenuControllerWillShowMenuNotification, or is there any other way by which I can hide and Select | Select All menu? Thanks a lot ...

iPhone SDK - opening links in a UITextView in a web view

I have specified dataDetectorTypes on a UITextView so that URLs open in Safari when touched. Is it possible to intercept this behaviour so I load the URL in a UIWebView instead? Or would I have write my own URL detector code to re-route this? ...

How to change the writing direction in iPhone UITextView or UITextField

Right now if you type something in a right to left language and tap and hold, the copy and paste menu will have an extra option for changing the writing direction form "left to right" to "right to left". I want to set this option in the code so that my UITextView writing direction would be right to left by default. Does anyone know h...

color of hyperlink in iphone

Hi everyone, is there a way to change hyperlink color in situations when UITextView and, for example, .dataDetectorTypes = UIDataDetectorTypePhoneNumber; are used? Thanks in advance! ...

Inconsitant results with Pinches in a UITextView

I'm trying to figure out the best way to handle pinch gestures in a UITextView. Currently I've been trying to handle it all in the UITextView, but I'm getting inconsistant results. It seems that it can catch my touches in the touches began method, but it doesn't always get caught in the touches moved method. Would it be better to hand...

Share didSelectRowAtIndexPath selection in an array, between 2 controllers

On my never ending quest to share a table row selection to multiple views loaded in a modal view, I have got it down to one issue. I am using Apples DrillDownSave sample code as a model to recreate this magic. And think I have it all set up exactly the same... In the didSelectRowAtIndexPath section of my RootViewController.m, I have the...

UITextView Text alignmnet at Top

I'm using UITextView to display a text read from XML file. On click of a button, it will read next entry from XML file and replaces text in text view accordingly. Its working fine. But the trouble is that, some times, the text starts at 0,0 location in text view and some times, its leaving some space at the top of text view and displayin...

Highlight PART of text of UITextView

Hi all together, I'm quite new to Iphone programming, and already did some search on the internet trying to get some usefull help. What I would like to do is, if my detailed view gets called I would like to highlight just a Part of the text of the UITextView Element. Lets say the text within the UITextView is: blatextbla Then I would ...

Adding a newline to a UITextView

I've been searching for an answer to this question on google and some other forums, but I haven't found the answer yet. It seems like a simple enough question: how do I manually insert a newline into UITextView's text field? If it matters, I'm reading my string from an SQLite database. That means that I'm translating a const char (I thi...

How to move UITextView correction suggestion above text

I'm using a UITextView to roughly replicate the SMS text box above the keyboard. I'm using a UITextView instead of a field so that it can expand with multiple lines. The problem is that, in my UITextView, the correction suggestions pop up below the text, causing them to be partially obscured by the keyboard. In the SMS app, the sugges...

iPhone Autocomplete

I am creating an iPhone application where I need to display autocomplete functionality for one of the 5 textfield. What could be the best possible way to achieve this. For now I am showing a tableview on the didtextchange delegate method of UITextField. Kindly suggest me better way of doing this. Any suggestion will be appreciated. Tha...

iPhone - UITextView should look like a UITextField

Hello! I need a textfield so an user could write several lines. Unfortunately a UITextField does not provide several lines, so I think I have to use an UITextView. But the design of both are not the same. Is it possible to design the UITextView like the UITextfield standard with white background and rounded corners? Thanks a lot in a...

How to style UITextView with a 3D shadowed border?

In another post, luvieere shared a means by which rounded corners can be applied to a text view using the QuartzCore framework (see post). It would seem to me that a 3D border, like that found on a UITextField, could be created via layers instead of using a background image. Does anyone know if or how this can be done? I'd really like ...

Undo typing in UITextView

I'm using iPhone SDK 3.0. Say, I enabled 'shake to undo' by setting application.applicationSupportsShakeToEdit to YES in my app delegate. I created an UITextView in RootViewController and had it become first responder upon app launch. I use - (BOOL)textView:(UITextView *)aTextView shouldChangeTextInRange:(NSRange)range replacementText:...

UITextField and UIPickerView

Is it possible for a UIPickerView to appear instead of a keyboard when a UITextField is selected? Every option in Interface Builder is some sort of keyboard. I suppose I could create a UIPickerView programmatically and create one when the UITextField registers a touchUpInside event, then tell the UITextField to resignFirstResponder, bu...