Using a UIAlertView with a UITextView may be useful for you.
Embed the UIAlertViewDelegate in the .h file.
UITextView *comments; -(IBAction)btnAddClicked:(id)sender { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Noreply Email" message:@"\n\n\n\n\n" delegate:self cancelButtonTitle:@"Close" otherButtonTitles:@"Send", nil]; comments = [[UITextView alloc] initWithFrame:CGRectMake(15,45, 255, 100)]; [comments setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"mailbody.png"]]]; [comments setFont:[UIFont fontWithName:@"Helvetica" size:15]]; comments.scrollEnabled = YES; [comments becomeFirstResponder]; [alert addSubview:comments]; [alert show]; [alert release]; }
A request with a small text view will appear here, which you can add comments and then process the text inside the delegate method like this.
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if(buttonIndex==1)
Ξ²hargavαΈ―
source share