Hey,
I'm trying to calculate the height of the text constrained by a UITextView but it doesn't seem to return correct results.
Here is my code :
- (void)textViewDidChange:(UITextView *)aTextView {
CGSize textSize = [aTextView.text sizeWithFont:aTextView.font constrainedToSize:aTextView.frame.size lineBreakMode:UILineBreakModeWordW...
Each time I build an iphone application, I found myself writing the same code over and over again: generic string || text || choice editor controllers.
Imagine a tableview showing some data that I want to edit. When I click a string field (short text), I open a generic string editor controller, with a tableview with 1 cell, and a keyboa...
This is something that happens to me really often. I have a textfield in a table view cell, when I try to edit the textfield the keyboard appears, and when I rotate the device from landscape to portrait, this is what I get.
Any ideas?
Thanks in advance.
...
Before I was using this method....
//TextView is a UITextView
[TextView scrollRangeToVisible:NSMakeRange([TextView length], 0)];
...which would programmatically scroll to the end of the UITextView but it doesn't seem to be working in iOS 4.0. Is there a way to programmatically scroll to the end of a UITextView without changing edit...
Hi,
I have a UITextView included in a UITableViewCell. The layout is correct when the views are initially displayed, but once I click in the UITextView it DOES NOT automatically scrolls up and the whole UITextView becomes invisible.
This image is when the UITextView is not active:
http://img13.imageshack.us/img13/3894/unloaded.png
A...
Hey guys,
Whenever I widen a UITextView to a size greater than 512, with code such as:
textView = [[UITextView alloc] initWithFrame: CGRectMake(0, 0, 513, 1024)];
It doesn't display any text anymore... 512 works, any size below that too, but anything greater than 512 and it stops displaying any text. The full code:
- (void)loadView...
EDIT: I have modified Apple's colored tile example by adding
UIMenuController *theMenu = [UIMenuController sharedMenuController];
theMenu.arrowDirection = UIMenuControllerArrowLeft;
to applicationDidFinishLaunching and adding a UITextView right next to the reset button. If I double click on a colored tile, the copy paste menu correc...
Ok, I've got a XIB class called MenuItemView with 3 sub views, a UIImage, a UILabel, and a UITextView.
I'm dynamically loading instances of MenuItemView as pages in a UIScrollView. It creates a similar effect of scrolling through food items in the Chipotle app.
My problem is, the text in both the UILabel and UITextView are becoming...
Hello,
I have a the following piece of code:
-(IBAction)routePicker
{
UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 264, 320, 216)];
UIPickerView *thePickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0,0,320,216)];
thePickerView.dataSource = self;
thePickerView.delegate = self;
[myView ...
I have a UITextView for text editing. By default, it has a small margin around the text. I want to increase that margin by a few pixels.
The contentInset property gives me margins, but it does not change the text "wrap width". The text is wrapped at the same width, and the extra "margin" just causes the view to scroll horizontally.
...
Hi guys,
I have a Flip View and on this "flipped" view I have a UItextView, (NOT a textField).
I need to be able to display a rightBarButtonItem when the editing of the textView begins and then to click this rightBarButtonItem to resign the keyboard.
There are lots of similar problems such as this but none of them are on a flip view.
...
I have a keyboard which edits text in a UITextView and tapping the return key doenst dismiss the keyboard, it only moves down to the next line.
How can I add a done button and make that dismiss the keyboard?
...
Hi,
I am wondering if there is a way to tell if the user hasn't typed in the UITextField say for 2 seconds.
If that's not possible, I'd like to know if there is a way to tell if the user made an error typing in the text field - example:
There is a UITextView which contains objects from an NSArray and the user has to type in the textf...
I want to create a ChatView exactly like iPhone's texting app (Messages). I'm doing it programmatically and am trying to move the textView up with the keyboard. I want to do this in a function that gets called by UIKeyboardWillShowNotification. Could you help me debug this error?
In ChatViewController.m, I set a listener for UIKeyboardW...
Hello,
I am working on a project which can edit any document file whether it is doc, rtf, txt, pdf file.
After editing user can save or you can say update that file.
Please advise .. how can anyone edit pdf or doc and re save it ?
Thanks
...
Hi,
I am getting problem in making my application compatible with iphone 4.0
My problem is like this.
When i click on a UITextview a custom keyboard is showing
UIView *test=[[UIView alloc] initWithFrame:CGRectMake(0, 160, 320, 215)];
UIExtendedKeyBoard *objKeyBoard =[[UIExtendedKeyBoard alloc] initWithFrame:[test bounds]];
...
I have a UITextView with scrolling disabled, and I am using the page-curl transition to change the text inside. This is the code I'm using:
myView.text = nextString;
[UIView transitionWithView:myView duration:PAGE_CURL_DURATION options:UIViewAnimationOptionTransitionCurlDown animations:nil completion:nil];
Everything works fine, exce...
Hi friends,
I have to show html string in textview not in uiwebview. Because i have to edit the content of the html string.
for ex:
NSString *data="< br>Data to be shown<\ br>"
textview.text= data;
Is it possible?
Thanks in advance for suggestion
Regards,
sathish
...
I'm messing around with the iphone sdk and with universal apps. I have UITextView in both my iphone class and a shared class I called Shared (In my Shared class the UITextVIew is called textInput).
I have a UIButton that when pressed, calls a method of the Shared class since I allocate an instance of the Shared class when app finishe...
Hi guys,
I'm experiencing something considered a bug in my situation. Probably this is not a bug but a feature ;).
Here's my case:
I load a UIScrollView with my content. A part of my content is loaded asynchrone after the view is already loaded. This works great and without issue.
Some of these controls however are UITextView controls...