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

  • SEARCH
  • Home
  • 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 3750520
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T08:56:45+00:00 2026-05-19T08:56:45+00:00

When I start my iPad app, I want to display a screen that slides

  • 0

When I start my iPad app, I want to display a screen that slides in on top of the main view that is there at the start up. I want this screen to take up the entire screen and display a web page, and the only way that the user can get out of it is click on a UIButton at the bottom of the screen.

Right now, I am setting the view of my main view controller as the view that I want to display, but the next step in execution is showing a UIAlert, and this alert is appearing.

What can I use to have this pop up wait for the user to click Agree before continuing?

Thanks.

  • 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-19T08:56:46+00:00Added an answer on May 19, 2026 at 8:56 am

    You will want to use a delegate.

    So to do what you want do something like this (I don’t know your actual class names, so I’m guessing):

    In your AlertScreenViewController.h file add this code:

    @protocol AlertScreenViewControllerDelegate;
    @interface AlertScreenViewController : UIViewController {
      ...
      id<AlertScreenViewControllerDelegate> delegate;
      ...
    }
    ...
    @property (assign) id<AlertScreenViewControllerDelegate> delegate;
    ...
    @end
    
    @protocol AlertScreenViewControllerDelegate <NSObject>
    - (void)alertScreenViewControllerWillClose;
    @end
    

    Then in your AlertScreenViewController.m file:

    add this:

    @implementation AlertScreenViewController
    ...
    @synthesize delegate;
    ...
    @end
    

    add this code wherever your button is pressed:

    [self.delegate alertScreenViewControllerWillClose];
    

    In your MainViewController.h file add this:

    #import "AlertScreenViewController.h"
    @interface MainViewController : UIViewController <AlertScreenViewControllerDelegate> {
    ...
    }
    ...
    @end
    

    In your MainViewController.m file add this:

    Wherever you’ve loaded up the AlertScreenViewController add this after the init call:

    alertscreenviewcontroller.delegate = self;
    

    Then move all code after the display of the alertscreenviewcontroller code to this method:

    - (void) alertScreenViewControllerWillClose {
      //UIAlert logic here
    }
    

    You can find another example here: http://www.dosomethinghere.com/2009/07/18/setting-up-a-delegate-in-the-iphone-sdk/

    Or just google iphone sdk delegate

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

Sidebar

Related Questions

I have an iPhone/iPad app that I want to port to MacOSX. Most of
I start a iPad game using cocos2d.. When I add a full screen image
I'm experimenting with a magazine kind of iPad app that I develop and I
In my iPad app, I have a UIAlertView which pops up upon start up,
I want to develop an App that requires wired communication between Web cam type
Has anyone successfully created an Extjs app that works on iPhone, iPad and Android?
I want to build a Terminal like App for the iPad/iPhone. I only need
I want to call SAP web service in my iPad app, I have access
In my iPad App I have a modal view ( UIViewController with modal presentation
I have an iPad app that records video and sends it to my SaaS

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.