Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3402012
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:05:10+00:00 2026-05-18T05:05:10+00:00

Is it possible to present a UIAlertView and not continue executing the rest of

  • 0

Is it possible to present a UIAlertView and not continue executing the rest of the code in that method until the user responds to the alert?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:05:11+00:00Added an answer on May 18, 2026 at 5:05 am

    I guess stopping the code you meant was to stop the device to run the next code you have written after the alertview

    For that just remove your code after your alertview and put that code in the alertview delegate

    -(void) yourFunction
    {
         //Some code
         UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"Your Message" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
                [alert show];
                [alert release];
         //Remove all your code from here put it in the delegate of alertview
    }
    -(void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:    (NSInteger)buttonIndex 
    {
    if(buttonIndex==0)
        {
            //Code that will run after you press ok button 
        }
    }
    

    Dont forget to include UIAlertViewDelegate in the .h file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is that possible to present a UIImagePickerController inside a view, instead of using it
is it possible to search for the text that currently is present in the
Is it possible to prevent an asp.net Hyperlink control from linking, i.e. so that
Is it possible to use a CHECK constraint to prevent any date that falls
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
Possible Duplicate: How to check if internet connection is present in java? I want
Is it possible to enumerate every function present in a DLL ? How about
Is it possible to change the colour of a sub string present in a
I wonder if it is possible (and if it is then how) to re-present
At present it seems that VS2008 still isn't supported either in the 5.1.5 release

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.