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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:51:23+00:00 2026-05-26T14:51:23+00:00

I found this piece of code from an earlier Stack Overflow question which describes

  • 0

I found this piece of code from an earlier Stack Overflow question which describes how to pass multiple parameters to a performSelectorInBackground method.

However I’m struggling to apply the code to my problem, here is MY code:

- (void)callingMethod {
    NSDictionary * args = [NSDictionary dictionaryWithObjectsAndKeys:
                           cell, @"cell",
                           storyIndex, @"storyIndex",
                           nil];
    [self performSelectorInBackground:@selector(setCellImageWrapper:)
                           withObject:args];
}

- (void)setCellImageWrapper:(NSDictionary *)args {
    [self setCellImage:[[args objectForKey:@"cell"]]
             withIndex:[[args objectForKey:@"storyIndex"] intValue]];
}

- (void) setCellImage: (EventTableCell *)cell withIndex:(int)storyIndex {

    //My Code

}

As you can see I’m trying to pass an object of type EventTableCell to the setCellImage method from the setCellImageWrapper method. I’m getting the error “Expected Identifier” when I try to call the setCellImage -withIndex method. Can anyone tell me what I’m doing wrong?

Thanks,

Jack

  • 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-26T14:51:24+00:00Added an answer on May 26, 2026 at 2:51 pm

    If you remove the extra brackets around the

    [args objectForKey:@"cell"]
    

    it should compile fine

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

Sidebar

Related Questions

I found this piece of code from anther post here. It worked as intended
I'm using this piece of code i found from a tutorial to enable Ajax
I've found this piece of code on Koders : private ServiceProvider SiteServiceProvider { get
Reading this question I found this as (note the quotation marks) code to solve
I write this piece of code with C# using ADO.NET Entity Framework. I found
I'm using this piece of code I found ( http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage ) to display the
This piece of code has been taken from a game built with XNA framework.
I am learning about cronjob and I found this piece of code in one
This question extensions from one of the answers to my earlier question: how to
Did a test on instrument and found memory leak for this piece of code

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.