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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:57:38+00:00 2026-06-15T19:57:38+00:00

I have 3 methods in which i want that all complete execution one by

  • 0

I have 3 methods in which i want that all complete execution one by one.

It probably be done using blocks but i cant learn how to create own blocks. Or Is there any other way to achieve this?

I have scenario as,

Also same scenario without blocks & all is running fine in ios6 but os lower than that is not working

[self getIndex];
[self expandrows]; //I want this expandrows to be called only after everything in getIndex is finished.

-(void)getIndex
    {
     [self didSelectRowAtIndexPath:indexPath];
     //Once this didselect is completed execution than after only i want to start this loop
            for (int index = 0; index < [tableView numberOfRowsInSection:0]; index++)
           {
                NSMutableDictionary *aMutDicCur = [self.model itemForRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0]];
                if([[aMutDicCur valueForKey:@"CategoryId"] intValue] == 4)
                {
                    indexPath = [NSIndexPath indexPathForRow:index inSection:0];
                    break;
                }
           }

    //After this loop finishes i need to again call one other method
    }

As far as I know blocks are asynchronous.So in that case

  • 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-15T19:57:39+00:00Added an answer on June 15, 2026 at 7:57 pm

    Call this [self expandrows]; after when you finish your second method call which is call in

    get index method.

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

Sidebar

Related Questions

I want to keep track of all the methods which have been run on
Hi I want to create a WCF service that have login method, which is
In my application I have methods which returns a control (checkbox, radiobutton, textbox) but
I have a .NET assembly that has tens of classes and methods which are
Hi I have a class with multiple methods in which I require synchronized blocks
I have two methods, one called straight after another, which both throw the exact
I have a number of methods that ultimately call my this._context.SubmitChanges method. Because all
I have a method which i want to convert to Extension Method public static
I want my classes X and Y to have a method f(x) which calls
I have an iPhone application which in which I want to perform a method

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.