Hi !
Just a simple question.
Is it possible to change the text color of UITextView with a animation?
[UITextView beginAnimations:nil context:NULL];
[UITextView setAnimationDuration:2.0];
textView.textColor = [UIColor grayColor];
[UITextView commitAnimations];
Cheers!
- Martin
...
I have a UITextView with a height of let's say 300. What I would like is when the typed text gets to the half way point, for the scrolling to start as if it were at the bottom of the textView. Basically I would like to programmatically set the point within the textView for scrolling to begin. Any ideas? Thanks.
...
Hello,
I having a hard time to capture the backspace button in a UITextView.
I am trying to capture it in the method
- (BOOL)textView:(UITextView *)textView
shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
I thought it was ok to do like this.
if([text isEqualToString:@"\b") { // code ... }
...
Hi , i created persian custom keyboard , my letters type on UITextView , but the UITextView dosn't support paste function ! why ? i don't check the editable option .
...
Hi , i have an UITextView and i don't want check editable option ,how can call keyboard via a button ?
this code doesn't work for me !
-(IBAction) yourButtonClick
{
[myText becomeFirstResponder];
[self.view addSubview:myTex];
}
thank you .
...
Hi , i have problem with cut some text from UITextView , i idon't understand how can implement Cut , for example copy or paste it's like this :
-(IBAction)copy {
NSString *copyString = [[NSString alloc] initWithFormat:@"%@",[textPad text]];
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setString:copy...
Is there a way to shrink the font-size in a UITextView if there is too much text? Similar to the UILabel?
...
I want a UITextView in cocos2d. I used in init method I wrote the code ,
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0,0, windowSize.height/2,windowSize.width/2)];
textView.backgroundColor = [UIColor clearColor];
textView.text = @"I am First enemy";
[textView setEditable:NO];
[[[CCDirector sharedDirect...
I want to have to occasionally insert text into the UITextView text object. For example, if the user presses the "New Paragraph" button I would like to insert a double newline instead of just the standard single newline.
How can I go about such? Do i have to read the string from UITextView, mutate it, and write it back? Then how would ...
I am trying to get the last editing point of a UITextView box.
I have tried getting the value textView.selectedRange.location,but it always comes out as 2147483647 (which is -1).
When should I read this value
...
I have a UITextView *textView in cocos2d's CCLayer. The text is scrolling in both the horizontal and vertical directions. But, I need it to scroll and bounce only in vertically.
How to stop the horizontal scrolling programmatically ?
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(100,200, windowSize.height/2,w...
Hi....
i want show the iphone keyboard. so how can i write the code(programatically) to show keyboard.
Thanks In Advance
...
Do, custom fonts work in UITextView ?
I loaded UITextView *textView in cocos2d layer. And I trying to set the font of the text as
Copperplate Gothic Bold. I downloaded the font file Coprgtb.TTF. But, the text is not adjusting to this font. The system fonts are working, but the custom fonts are not working ?
I added the font file in r...
I'm new to iphone development. I'm a VB programmer who is trying to convert a VB application to an ipad app.
I need some help with sending text to a UITextView.
I want to first have a UIPickerView and then once the user hits a UIButton, a UITextView appears and the text is then generated by my source code code, line by line. The code...
I'd like to create a UITextView that you can tap anywhere within it and start typing at that location. The default behavior of the control is that typing starts where the last character ended. So, if I had a UITextView with no text in it and tap in the middle of the control, I'd like typing to start there--not in the upper left.
What is...
Hello.
How do I make sure that the textview is shown and the keyboard is not obscuring the textview, while in landscape.
Using UICatalog I created a TextViewController which works. In it there are two methods for calling the keyboard and making sure that textView is positioned above the keyboard. his just works great in Portrait mode.
...
Actually I love UILabel. They're sweet. Now I had to go to UITextView because UILabel is not aligning text vertically to the top. Damn. One thing I really need is a text shadow. UILabel has it. UITextView seems to not have it. But I guess that guy just uses the same underlying UIKit NSString additions?? Maybe someone already has a soluti...
Hello!
I have a UITableView with custom cells. The cells containing one UITextView each and the cell is resizing during user type text in the TextView. My problem is when user is on first row in a TextView autocorrection bubbles wont be visible in the current cell. Is there any workaround or can someone point me to another direction...
I think I'm missing something obvious and would appreciate an answer.
I have a view with a 2-section grouped tableView, each section having one row and a textView, the heights of the rows 335 and 140. This allows for a box with nicely rounded corners to type text into when the keyboard appears (140 height section) and when the keyboard...
Hello,
I need to track changes in my UITextView method (actianly for limiting number of lines), but none of UITextViewDelegate methods are being called when editing in UITextView begins. Not even - (void)textViewDidChange:(UITextView *)textView;
I dont know what Im doing wrong
I added UITextViewDelegate method to header file like that...