uitextview

Pixel-Position of Cursor in UITextView

Hello, is there a way of getting the position (CGPoint) of the cursor (blinking bar) in an UITextView (preferable relative to its content). I don’t mean the location as an NSRange. I need something around: - (CGPoint)cursorPosition; It should be a non-private API way. Thanks, Raphael ...

Grab SELECTED text on UITextView

Hello Everyone, How do I grab SELECTED/HIGHLIGHTED text on a UITextView. I already know how to do this on UIWebView using javascript. Now I am trying to figure it out for the UITextView. Thanks for your help. ...

Can I Programmatically Select Text in UITextView?

Hello everyone, I want to select Text on UITextView, similar to the default "Select" and "Select All" pop options we see when we tap. I want to the user the ability to do that from my custom menu. I played with selectedRange but that doesnt seem to do the trick. Any ideas? Thanks ...

UITextView w/ Syntax Highlighting

Is there a common library, parser, etc. for Cocoa or Cocoa-Touch that can take a chunk of text and do the proper syntax highlighting? As a simple example, I'd like to have a UITextView that has C/C++ syntax highlighting. ...

can I auto update my uitextview from the value of the row of my uipickerview without pressing any select buttons?

So I have a uipicker view, that I have managed to load some data from my db into. I would like to update a textview, which is right above the pickerview, with each changing of the row. Is that possible? If I don't have to, I would like to avoid pushing a button in order to show the respective text. Can I make it so that the value in th...

Iphone - UITextView Memory-leak

I have a memory leak when i use a UITextView but I don't understand why : UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(20, 160, 280, 150)]; textView.text = @"Hello World"; textView.editable = FALSE; [self.view addSubview:textView]; [textView release]; Is someone could help me? :S ...

UITextView position.

Is there a way to find ypos in a UITextView, or/and find wich row that currently marker is active? Regards. ...

Should I use UIWebView or UITextView to display text in an e-book reader app?

I want to make an e-book reader iPhone app. Should I use UITextView or UIWebView to display the text? Which control is used by other e-book readers? ...

Objective C - displaying data in UITextView

Hi, I'm having difficulties displaying data in a UITextView in iPhone programming. I'm analyzing incoming audio data (from the microphone). In order to do that, I create an object "analyzer" from my SignalAnalyzer class which performs analysis of the incoming data. What I would like to do is to display each new incoming data in a TextV...

UITextView - preserving carriage returns on COPY - iPhone

Hello Everyone, When I try to copy text from a UITextView to say an Email message to compose and send, the carriage returns (new lines) of the text disappear and the text connects up into one LARGE paragraph. I am not sure why this is happening. How do I fix this? Thanks ...

KeyboardWillShow with UITextView

Here's the setup: I have a textView (txtReply) where the user puts information I have a UIView that contains a scroll view and some labels, as well as the textView (ChatView) When the user selects the textView, then it brings the keyboard up. I use 'keyboardWillAppear' to move the 'ChatView' up so that the text view is still visible. I t...

Double-spaced textfield in CocoaTouch (iPhone)

Hi there, Can I have a double-spaced UITextView? I mean, so that it retains its formatting when I edit it? I need to display graphical elements in between the lines of text. Any ideas? Thanks! ...

UITextField in UITableView to becomeFirstResponder.

Hi ! I have a problem which I dont have a clue how to work around. Maybe anyone of you could help me to the correct directions... Simple I have a UITableView with each cell containing a UITextField. When I´m editing a cell (UITextField) and hit Return Key, a new row is inserted under the current cell. After that I reloadData on t...

Text editing best practices (with tags, etc.)

Hi there, I want to create a text field with some text, that is styled with tags. Think of MS Word, some ext is bold, some is a headline, etc. The tags that style the text are not visible to the user, he just sees the text in bold. How do I preserve these tags? I mean when I backspace over the closing bold-tag, for example, how do I pr...

UITextView in UITableViewCell scrolling problems.

Ok. I have made a custom cell for my table, and it contains a text view. When I have multiple lines in the text view, I can scroll up and down, but in doing this the table also scrolls. How can I stop this behaviour? If anyone needs parts of my code or further details, please just ask. I am more than willing. Thank you for your help ...

Using a UITextView in a UITableViewCell with a UIKeyboard

I have a simple UITableView that has two cells. Cell 0:0 consists of a UITextField we'll call the title and Cell 0:1 consists of a UITextView we'll simply call a note. Cell 0:0 (the text field) is a standard size, one row cell. I'm therefore trying to fill the rest of the screen up with Cell 0:1 so I return a larger height for it. This a...

Formatting in a UITextView

hi all , im having problems with formatting for a UITextView. my app pulls in XML, saves some of it to a string , and then displays the text in a UITextView. it understands if you put a return in there, and it starts a new line. but i want to put paragraphs in there, any idea how i can pass that information without doing multiple UITe...

iphone SDK: how to add a new line char to my uitextview programmatically?

Please help me adding a line break (\r\n) programmatically to my uitextview ...

uitextview spelling suggestion off?

Hi All, Please help me turning the spelling suggestion in the uitextview when the user inputs some text. can this feature be turned off? ...

UITextView keep scrolling after every new line is inserted, so the lines are invisible (iPhone OS)

Hi all, I have UITextView and a situation that is problematic. I write line of text in the UITextView, and then press return for new line. What happen is, the line that i entered is moving up so i can't see it, and i am able to continue writing. This is bad behavior for me, because i need the line to stay, and only move up when i reach ...