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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:39:43+00:00 2026-06-06T21:39:43+00:00

I have a button called as Sync . On clicking on it, I need

  • 0

I have a button called as Sync. On clicking on it, I need to display a popOverController which displays a few items in UITableView. I have used the following lines of code in .m file to declare the UIButton in ViewWillAppear function :

UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithTitle:@"Sync"
                                                               style:UIBarButtonItemStyleBordered
                                                              target:self
                                                              action:@selector(syncAction)] ;

The code for syncAction is :

- (void)syncAction:(id)sender{


Sync = [[SyncTableViewController alloc] initWithStyle:UITableViewStylePlain];


Sync.syncDelegate = self;
self.SyncTableViewPopover = [[UIPopoverController alloc] 
                                   initWithContentViewController:Sync];               

[self.SyncTableViewPopover presentPopoverFromBarButtonItem:sender 
                                        permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];


}

But, however, on running the application I am getting the following error ::

[splitViewXXXXViewController syncAction]: unrecognized selector sent to instance 0x6b70660

2012-07-02 15:35:59.549 splitView[895:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[splitViewXXXXViewController syncAction]: unrecognized selector sent to instance 0x6b70660'

I am unable to sort it out. Can someone help me to sort it out ?? Thanks and 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-06T21:39:44+00:00Added an answer on June 6, 2026 at 9:39 pm

    You have to use the @selector(syncAction:)

    UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithTitle:@"Sync"
                                                               style:UIBarButtonItemStyleBordered
                                                              target:self
                                                              action:@selector(syncAction:)] ;
    

    This will resolve you issue

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

Sidebar

Related Questions

I'm trying to create a UIButton programmatically. I have a button called addCash (which
Assume we have a single Windows form with a button called SimpleButton1. The following
I have a WPF window, which contains a button called Cancel. Under ordinary circumstances
I have noticed on the E-Gold page a small button called SRK which opens
I have a button called Sync. When tapped / pressed it sends data to
I have a menu button called Restart which restarts a simple text game I
I have a button called Download page at the bottom of my detailView of
I have an ASP.NET MVC Page with a button called Start Live Meeting. When
I have created my own button class called custom_btn. I created it on the
I have a class called Mouse (tracking button states in a game). I want

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.