Hi, i'm having a couple of problems when i try to alloc a UITextView on an AlertView. Here is my code:
UIAlertView* minhaCritica = [UIAlertView new];
minhaCritica.title = @"7Arte";
[minhaCritica addButtonWithTitle:@"Cancelar"];
[minhaCritica addButtonWithTitle:@"Enviar"];
minhaCritica.message = @"Escreve a tua crítica:\n\n\n\n";
minhaCritica.delegate = self;
[minhaCritica show];
CGRect frame = minhaCritica.frame;
frame.origin.y -= 100.0f;
minhaCritica.frame = frame;
criticaTxtView = [UITextView alloc];
[criticaTxtView setFont:[UIFont systemFontOfSize:16.0f]];
[criticaTxtView initWithFrame:CGRectMake(20.0, 80.0, 245.0, 40.0)];
[minhaCritica addSubview:criticaTxtView];
[criticaTxtView becomeFirstResponder];
my problem is when i start inputing text, the text view doesn't scroll as i type. It should scroll one line up, when the first 2 rows are full.
Can anyone help me with this? Here's a video showing the problem: http://www.welove.com.pt/7arte.swf
Also, i'm having trouble getting the text the user inputed into a fiel. i worked with: criticaText = [[alertView textField] text]; but now it doesn't work with the code above.