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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:47:20+00:00 2026-06-14T04:47:20+00:00

Very beginner obj-c question. My task is to do simple sequence when view loads:

  • 0

Very beginner obj-c question.

My task is to do simple sequence when view loads:

  • pause 2 secons
  • method1 execution
  • pause 2 seconds
  • method2 execution
  • pause 2 seconds
  • method3 execution

I write this code for iOS5+ so blocks or other features can be used. I tried

[NSThread sleepForTimeInterval:x];

to make the pauses between methods executions, but three pauses added to one and I have one big pause, so it’s wrong piece.
How to do this in right way?

  • 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-14T04:47:21+00:00Added an answer on June 14, 2026 at 4:47 am

    Sleeping an NSThread is never the right way to handle timed method execution. You want NSTimer, which you can set to either fire the same method after two seconds (then have that method determine which selector to perform next), or have three timers set to fire two seconds after each other, each calling a different method.

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

Sidebar

Related Questions

I came here to ask a simple, very beginner question regarding python. I just
Very beginner obj-c question. I have plain UITableView with two sections, but I am
Another very beginner website question. So looking at the file structure behind a simple
Very beginner obj-c question. Is it a possibility to ask about who is first
Very beginner obj-c question. I have grouped TableView with two sections http://uaimage.com/image/c6c9ca23 . In
Probably a very basic beginner question. Imagine the following situation: I have an ASP.NET
Very simple + silly question: Does clojure provide multi maps? I currently have something
Very simple question... I have an array of pixels, how do I display them
Very simple question: Specifically in Python (since Python actually has strongly recommended style guidelines
I am very new to Triggers and so this is a very beginner question.

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.