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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:25:15+00:00 2026-06-01T17:25:15+00:00

Well, I’m creating a custom SEL like: NSArray *tableArray = [NSArray arrayWithObjects:@aaa, @bbb, nil];

  • 0

Well, I’m creating a custom SEL like:

NSArray *tableArray = [NSArray arrayWithObjects:@"aaa", @"bbb", nil];
for ( NSString *table in tableArray ){
    SEL customSelector = NSSelectorFromString([NSString stringWithFormat:@"abcWith%@", table]);
    [self performSelector:customSelector withObject:0];
}

I got a error:
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[Sync aaaWithaaa]: unrecognized selector sent to instance

but if i run it with the real method name it works!

[self performSelector:@selector(aaaWithaaa:) withObject:0];

How to solve it out?

  • 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-01T17:25:16+00:00Added an answer on June 1, 2026 at 5:25 pm

    You’ve already created selector from string – pass it to performSelector: method:

    [self performSelector:customSelector withObject:0];
    

    Edit: Mind, that if your method takes parameter then you must use colon when create selector from it:

    // Note that you may need colon here:
    [NSString stringWithFormat:@"abcWith%@:", table]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well i take from my database table something like: $datetime=2012-01-12 00:00:00 i want to
Well, how to create picture link like this up or down votes (on the
Well, i have the following need: create 3 dropdownlist with dependencies. My table in
well i have used an html file like these in iframe <iframe src=sample.html></iframe> is
Well, sorry for the question, is more like a general culture one (haven't found
Well the title Question pretty much sums it up, But I'd like to detail
Well, I am creating a WCF service, that have a large number of classes
Well, I have GridView with editable field like 'TemplateField' with DropDownList. My code: <Columns>
Well I'm designing a Custom WPF control - fore the sake of learning -
Well i am trying to implement basic functionality of voice recording , like Record

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.