uitextview

(iphone) non-editable UITextView "bookmark"

Hi, I am new to iphone dev and I'm trying to create a "bookmark" in an NON-editable UITextView. More specifically - I go to the view with the UITextView, scroll maybe halfway(or to some other point) through the text, leave that view and when I come back the UITextView is showing where I left off. I have everything figured out except h...

iphone UITextView manually registerring touches

I'm currently working on an app with this structure: I have a view controller which we will call MainViewController, that handles all touch events for the application. MainViewController has as an instance variable, a view called canvasView. canvasView has as a UITextView called hiddenTextView. Theres other invisible views and such so ...

iphone Consistently Hide Some Text in a UITextView

I have a UITextView that I'm trying to keep hidden from the user, except I'm using it's autocorrect interface so I can't just put it's hidden property to true. Currently I am putting the contentOffset such that it hides the first line of text, however this does not consistently work. Sometimes it does, other times the scroll view re scr...

Resizing a UITextView with a maximum height

Hi all :) I am displaying some text from a sqlite3 database and would like the UITextView to resize automatically depending on the amount of text. I can do this fine as follows: TextLabel.scrollEnabled = YES; TextLabel.userInteractionEnabled = YES; [TextLabel setFrame:CGRectMake(55.10, 26.15, TextLabel.contentSize.width, TextLabel.co...

How can I make a UITextView have a similar style to a UITextField and how do I get the damned thing to go away?

I can't understand this. Basically, I want the same style as a UITextField, but to be able to take a multiline string. I'm sure it's a frequently asked problem, but I can't find a readable solution anywhere on the web. Oh, and how can I make the damn keyboard go away when I touch out of it, or press a "Done" button (which doesn't seem t...

UITextView delegate not getting all method calls

I have a UIViewController that implements UITextViewDelegate and is connected as the delegate to my UITextView. Whenever the text view is tapped, I get a call to: - (void)textFieldDidBeginEditing:(UITextField *)sender and whenever the contents of the view change (keyboard, programmatic modification), I get calls to: - (void)textVi...

Justified Alignment in UITextView - iPhone

In my application - i have an textView with many lines, but I need the data with proper appearance .. Is it possible to have Justified Alignment in UITextView? ...

Best approach for simple link within UITextView

I am creating a dictionary lookup application. The user selects a word from a UITableView and the app displays the definition. In some cases the word will be similar to another word, so I want to display "See Also:" followed by a list of similar words that when touched, bring up another definition. In searching here on links within UI...

Is there an iPhone equivalent to the NSTokenField control?

Hi there, In my app I want the user to type names into a UITextField (or equivalent) and then when they press return, it will put that word(s) in a blue bubble that's usually associated with tags. The cursor then moves to the end where they can add more "tags". This can be seen when adding contacts in the To, CC & BCC fields in the Mai...

Header View for a UITextView?

Hi there, I want to have a custom view at the top of my UITextView that will scroll with the text view, so it is only visible when the text view is scrolled to the very top. Can this be done? I was thinking that because it is a subclass of UIScrollView there may be something that can be done. Thanks! ...

Placeholder in UITextView

Hi all! I'm making an application which uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can set for an UITextField. Does anyone know how to do this? Thanks in advance. ...

Refresh UITextView's Scroll Position on iPhone

I'd like to do some type of refresh of a UITextView to set the textview back to it's original state. I have a paragraph that gets dynamically populated depending on which TableViewCell the user clicks on. So when they scroll the text field, then go back and select another cell and return, the text changes, but the scroll position remains...

Detect when a UITextView has finished scrolling

Hi All, Is there a way to detect when a UITextView has finished scrolling? As a note, I allow the user to enable or disable paging. Thanks. ...

Can I change the color of auto detected links on UITextView?

I had a UITextView that detects phone numbers ans links, but this overrides my fontColor and change it to blueColor. Is there a way to format the color of auto detected links, or should I try a manual version of this function? ...

Best approach for adding non-web links to UITextView

I am creating a dictionary-style app that presents a tableview full of words, and when a word is selected, a UITextView is displayed that shows the definition of the word. What I would like to do is add a line that says "See also: synonym1, synonym2" where synonym1 and synonym2 are links that will take the user to the definition for the...

Make the keyboard appear for my custom UIView

Hi there, I have a UIView subclass and I want the keyboard to appear when it is the first responder (so a backspace can be detected to "delete" the view). I have tried making my UIView subclass adopt the UITextInputTraits protocol but it seems that's not enough to make the keyboard appear. How can this be done? Or is it only possible fo...

How to set "User Interaction Enabled" on UITextViews in code

I have the following problem: I got a view with two text fields and a UITextView (non editable, but scrolling) to show some infos. When the keyboard is shown I slide the whole view up so both text fields and the keyboard are shown. When the user clicks outside of the text fields I hide the keyboard and move the view back down. This work...

how to draw text on a image from a UITextView consist of multiple line string?

i want to get a multiple line string from a UITextView and draw it on a image, the position of text in the image must exactly same as the position in UITextView but i dont want jus add the textView to UIImageView, i need a new image consists of those text, is it possible? any suggestion to do that? ...

iPhone-SDK: UITextView doesn't show the newline key

I could get the keyboard to work but on a UITextView but some how the new line key doesn't show up. please help me thanks ...

Query : In UItextView, created in UItableview cell,the text moves upwards ,on click and due to which can't able to see the text.

Hi , I am creating a UItableview , in which ,in each cell,creating a UItextview.Here I am getting text in each cell.when we click in a particular row, the UItextView is created within the row,filled with the specified cell text. Now when i click on the text within UItextView,the text moves upwards and due to which we can't able to see ...