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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:29:22+00:00 2026-06-05T13:29:22+00:00

I am adding four to five views to the UIScrollview. i am creating that

  • 0

I am adding four to five views to the UIScrollview.

i am creating that views dynamically at run time.

all that views contain one button.

{

    UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];

    [button addTarget:self action:@selector(category_selected:) forControlEvents:UIControlEventTouchUpInside];

}

views are successfully added, but when i am clicking button “unrecognized selector sent to instance 0x657e850” is shown. What am I doing wrong?

  • 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-05T13:29:24+00:00Added an answer on June 5, 2026 at 1:29 pm

    You need to implement the category_selected: method in your controller. The signature should look like this:

    - (void)category_selected:(UIButton*)sender
    {
        // The sender is the button that was pressed.
    }
    

    When you set up the button like this:

    [button addTarget:self action:@selector(category_selected:) forControlEvents:UIControlEventTouchUpInside];
    

    I am assuming that you are calling this from your controller, so self is the controller, and that is the class that must have the category_selected: implemented.

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

Sidebar

Related Questions

Adding the row one by one in the button click.. (i tried but its
I have a table with four columns. I'm adding rows to the table dynamically
Adding more than one child to a WPF StatusBar results in poor layout with
I am putting together a nice little database for adding values to options, all
I've been looking to embellishing a UIScrollView by adding some kind of shadow around
All, I'm reading a csv file and adding the data to a MySQL DB
I want to use one servlet for four action CRUD. following servlet works well
Greetings, I am adding four random photos from a featured photo album to the
I'm trying to write a query that selects from four tables campaignSentParent csp campaignSentEmail
I am creating a layer with a shadow effect. Instead of adding it as

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.