uitextview

UIDatePicker and UITextView

Hi Sorry if i did wrong english typing I want to show a text in UITextView depend on the date, some thing like "in This Day App", I have this code in action -(void)changingText:(id)sender{ NSDateFormatter *df = [[NSDateFormatter alloc] init]; df.dateStyle = NSDateFormatterMediumStyle; label.text = [NSString stringWithFormat:@"%...

read double quotes and single quotes from Sqlite database.

Hi, In my application I am trying to read some data from sqlite database into UITextView. This text has double quotes as well as single quotes, for ex: she said : "Katie's purse has been lost" when I do this, I get strange characters in place of double and single quotes. Please help me with a solution to scrub these characters...

iPhone UITableView + Rotation = Disappearing Tables ?

I'm trying to replicate Apple's "Edit Details" functionality, where a grouped UITableView is shown with 1 row, and the entire cell is one big UITextView. For an example, go to the Contacts app, edit a contact, and add a Note field. That's what I'm going for. The problem I'm having is when you rotate the phone. The first time you rotate ...

how to make text wider in UITextView when rotate to UIInterfaceOrientationLandscapeRight

I put some text into a UITextView. Now I wanna make the inside text occupy the additional space when device become horizon. But this way only make canvas fill in all the space not the text. // This method is called by NSNotificationCenter when the device is rotated. -(void) receivedRotate: (NSNotification*) notification { UIDeviceOrien...

UITextView disabling text selection

I'm having a hard time getting the UITextView to disable the selecting of the text. I've tried: canCancelContentTouches = YES; I've tried subclassing and overwriting: - (BOOL)canPerformAction:(SEL)action withSender:(id)sender (But that gets called only After the selection) - (BOOL)touchesShouldCancelInContentView:(UIView *)view; ...

multiline text, sqlite and uitextview, is not working

I tried many things, i can't display multiline texts from database into uitextview, the \n characters appear as they are instead creating new lines. NSString *aDescription2 = [NSString stringWithCString:(char *)sqlite3_column_text(compiledStatement, 2) encoding:NSUTF8StringEncoding]; The problem must be here, because if i hardcode the...

Word wrap not happening in UITextView

I'm doing something that requires storing some text entered in a UITextView. It all works fine until the text is restored, then it is not wrapped in the UITextView (like it did when it was entered) but is truncated (just like a UITableViewCell does by default, tail truncation). Once the text is in the UITextView, it is saved to a Core D...

UITextview content moves up when textview is selected.

I am pretty new to this iPhone dev thing but so far I have built a pretty good app but I have stumbled into this problem that for the life of me I cannot seem to solve. Basically the app is a chat application for social site. Everything is working 100% except the input box which currently is a UITextbox. This works fine however I would ...

UITextView selectedRange not displaying when set programatically

My problem is that programatically setting the selectedRange of UITextView selects the text, but does not visually indicate it's selected. Does this sound like a bug in OS 3.0/3.1. More importantly, any solution or suggestions for getting the selection to display? (sample project linked at bottom of message) How do I know it's selected ...

User input in UITextView call delegate method twice?

I want to compare a string with user input character by character. e.g. I want to let user input "I have an apple." and compare the input with this string to see if his input is correct. When he input a wrong character, iphone will vibrate to inform him immediately. The problem is that I find some characters like the space will call the ...

iPhone Keyboard Shift state: how to control it?

Hi all, Sorry if my question if a dumb one, but I couldn't find a way to solve it. The thing is a have a custom text view that sometimes need to wrap text according to its own rules. Everything works just fine with static content, but if I insert a @"\n" as the user starts to write another word (I know the word he's going to type and I ...

Wiring events to a UITextView

I can't seem to wire events to my UITextView. I'm expecting that the list of events that are available for the UITextField ("Did End On Exit", "Editing Changed", etc) , should all be available for the UITextView. However this isn't the case. UITextView in its events listing shows nothing. What's going on here and how do I trap events...

How do you connect the "delegate" outlet of a UITextView to a class that implements UITextViewDelegate protocol?

How do you connect the "delegate" outlet of a UITextView to a class that implements UITextViewDelegate protocol? I can't seem to find an example in the docs The weird thing is the UITextView's "delegate" outlet has that drag 'n drop interface thingy, like you can wire it up to another widget but of course, I don't want to wire it up to...

How do I get a UIViewController given a UITextView?

I'm handling code in a UITextViewDelegate. Each function there receives the UITextView instance that received the event, for example: - (void)textViewDidBeginEditing:(UITextView*)textView { } Inside that method however, only given the textView, I need to access the UIViewController that contains the textView. Using textView.superv...

UITextView autoscroll to last line

Hi *, When writing in a UITextView more text than can fit entirely inside it, the text will scroll up and the cursor will often place itself one or two lines above the view's bottom line. This is a bit frustrating as I want my application to make good use of the entire height of the text view. Basically what I want is to configure the ...

UIPasteboard Cut Paste Select buttons not showing up as expected

Experiencing the following behavior in all of our UITextViews. Have not seen any posts on this issue to-date. First entry into the Application works as expected (Can paste, select, cut or copy text). After exiting application and reentry, standard UIPasteboard buttons do not show up. This effects all UITextViews in the app. There is...

UITextView in landscape mode

This ought to be brain-dead simple, but for some reason it's not. I built an extremely simple test app. It just has a very simple subclass of UIViewController, whose view is a UITextView, which is loaded from a NIB. UITextView is a subclass of UIScrollView, so I would expect some fairly similar behavior. My view controller overloads ...

how to get a UITextView to Clear like a UITextField does

im trying to get a UITextView to Clear like a UITextField does cant seem to get this I making a app that need to clear after tapping send much like a email or tweet with several lines of text. any code would be great thanks so very much ...

How to style uitextview to like Rounded Rect text field ?

Hello all, I am using a text view as a comment composer . In the properties inspector I can't find anything like border style property so that I can make it to rounded rect something like uitextfield. so the question is : How to style uitextview like uitextfield rounded rect ? ...

UITextView has no events

I am developing an iPhone application which requires a multiline text field (UITextView) to capture some text. When the user touches inside the textView it becomes firstResponder and displays the keyboard. What I really need it to do is remove the keyboard when the user is finished. Normally with a text field the return/done button pres...