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 8445179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:35:44+00:00 2026-06-10T09:35:44+00:00

I am new to iphone programming and I have created a special scenario. I

  • 0

I am new to iphone programming and I have created a special scenario. I am pretty sure that it will answer most of my questions for creating my app. Here it is. (i HAVE Xcode 4.2)

I have created a universal application with storyboard and single view.

I have appDelegate, storyboard files and a class file ViewController.h/m for my initial ViewController.

Suppose I have added a progress View (Graphically) on the view Controller. Also I have added another viewController on storyboard and made its background black.

When i run the app my first viewController with progress view shows up

Now my questions are

1- How can I link my progress view in the class file and how can i set it progress for 5 seconds.

2- After showing progress within 5 seconds it should switch to other view Controller with black background.

3- I have created a class file “MySecondController” How can i link this class to my black screen viewController.

These are easy questions. I hope I get answer to these. If anyone have tutorials linking to these questions do post. I have tried and haven’t found useful.

Best Regards

  • 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-06-10T09:35:45+00:00Added an answer on June 10, 2026 at 9:35 am

    1a) On the upper right of the xcode window, there’s a tuxedo icon. This is the assistant editor. Select the storyboard, select the ViewController, then select the assistant editor. A second editor will appear. Make sure it’s editing ViewController.h. Press control and drag from the progress view in the storyboard to a point inside the ViewController interface definition. (right after the line that looks like this: @interface ViewController : UIViewController) You’ll be prompted to type an outlet name. Type something like “progressView” (no quotes).

    1b) See below to set the progress view to a value.

    2) See below to present the second view controller after a delay.

    3) In the storyboard, drag a new viewcontroller onto the canvas. On the identity inspector (try the icons under the tuxedo icon, the third from the left is identity), set it’s class to MySecondController. Select the original ViewController, press control and drag from it’s status bar (the top of it) to the viewcontroller you just added. This will create a segue. A menu will appear asking what kind of segue you want. Make the segue modal for now. Click on the new segue to select it, then click on the attributes inspector (right next to identity inspector) give the segue an identifier, call it “MySecondControllerSegue”.

    Back to questions 1b and 2) Go to ViewController.m and add this code…

    @synthesize progressView;
    // this creates methods on self to access the progress view
    
    // this is called after the view appears
    - (void)viewDidAppear:(BOOL)animated {
    
        // do inherited behavior
        [super viewDidAppear:animated];
    
        // set the progress view value to a number between 0.0-1.0, representing percentage
        // notice how we used the synthesized getter: self.progressView
        self.progressView.progress = 0.5;  
    
        // call another method with no parameters after five seconds
        [self performSelector:@selector(doSegue) withObject:nil afterDelay:5.0];
    }
    
    - (void)doSegue {
        // run the segue that you created in IB
        [self performSegueWithIdentifier:@"MySecondControllerSegue" sender:self];
    }
    

    Build and run.

    After this is working, you’ll probably want to show that progress view advancing from the 0.0 position to 1.0 over the course of five seconds. For that, you’ll need to read about NSTimer. You can set one up to send you a message periodically, and you can adjust the progressView each time.

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

Sidebar

Related Questions

I am relatively new to Objective-C / iPhone programming, and have only created single
I'm pretty new in iphone programming and have stumbled upon this issue which I
I'm new to iPhone programming. I have 6 PNGs that represent all sides of
I'm pretty new to iphone programming. I have come up with a problem when
I am new to iphone development.I am creating a map application. I have created
I apologize I am new to iphone programming. I have created a Master-Detail Iphone
am new to iphone programming. I have a viewcontoller with an alertview in it.
I am new to iPhone programming. I have 10 number say (1,2,3,4,5,6,7,8,9,10) . I
I am new to iphone programming. I heard from few people that even if
Hii....i am new to iPhone programming..Can anybody help me out please i have an

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.