Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This can definitely be achieved, first of all you'll need to set up something like this.</p> <pre><code>// Create Alert UIAlertView* av = [UIAlertView new]; av.title = @"Find"; // Add Buttons [av addButtonWithTitle:@"Cancel"]; [av addButtonWithTitle:@"Find &amp; Bring"]; [av addButtonWithTitle:@"Find &amp; Go"]; [av addButtonWithTitle:@"Go to Next"]; // Make Space for Text View av.message = @"\n"; // Have Alert View create its view heirarchy, set its frame and begin bounce animation [av show]; // Adjust the frame CGRect frame = av.frame; frame.origin.y -= 100.0f; av.frame = frame; // Add Text Field UITextField* text = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 45.0, 245.0, 25.0)]; text.borderStyle = UITextBorderStyleRoundedRect; [av addSubview:text]; [text becomeFirstResponder]; </code></pre> <p>QUOTED FROM... <a href="https://stackoverflow.com/a/412618/716216">https://stackoverflow.com/a/412618/716216</a></p> <p>Then you'll want to animate moving the <code>UIAlertView</code> up when the keyboard is called up... something like this...</p> <pre><code>-(void)keyboardWillShow: (id) notification { if(showAlert==YES) { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.3]; [createNewAlert setTransform:CGAffineTransformMakeTranslation(0,-60)]; [createNewAlert show]; [UIView commitAnimations]; } } -(void)keyboardWillHide: (id) notification { if(showAlert==YES) { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.3]; [createNewAlert setTransform:CGAffineTransformMakeTranslation(0,+60)]; [UIView commitAnimations]; } } </code></pre> <p>QUOTED FROM... <a href="https://stackoverflow.com/a/3844956/716216">https://stackoverflow.com/a/3844956/716216</a></p> <p>Of course you can find additional info on custom <code>UIAlertViews</code> in the following Apple sample code! <a href="https://developer.apple.com/library/ios/#samplecode/UICatalog/Introduction/Intro.html" rel="nofollow noreferrer">https://developer.apple.com/library/ios/#samplecode/UICatalog/Introduction/Intro.html</a></p> <p>Good Luck!!!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload