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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:36:44+00:00 2026-05-20T23:36:44+00:00

Hi i made an application which has 2 views one paging scroll view which

  • 0

Hi i made an application which has 2 views one paging scroll view which is 430 px heigh and other static view which has 50 px. My problems is a bit hard to understand, i have info button in the static view and if i click on it the program falls due to this:

sharedlibrary apply-load-rules all kill Current language:  auto; currently objective-c quit Program ended with exit code: 0 

or

2011-03-30 08:51:28.427 PhotoScroller[637:207] -[__NSCFType buttonPressed1]: unrecognized selector sent to instance 0x4b36db0
2011-03-30 08:51:28.456 PhotoScroller[637:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType buttonPressed1]: unrecognized selector sent to instance 0x4b36db0'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x00f2f5a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x01083313 objc_exception_throw + 44
    2   CoreFoundation                      0x00f310bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x00ea0966 ___forwarding___ + 966
    4   CoreFoundation                      0x00ea0522 _CF_forwarding_prep_0 + 50
    5   UIKit                               0x002bc4fd -[UIApplication sendAction:to:from:forEvent:] + 119
    6   UIKit                               0x0034c799 -[UIControl sendAction:to:forEvent:] + 67
    7   UIKit                               0x0034ec2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
    8   UIKit                               0x0034d7d8 -[UIControl touchesEnded:withEvent:] + 458
    9   UIKit                               0x002e0ded -[UIWindow _sendTouchesForEvent:] + 567
    10  UIKit                               0x002c1c37 -[UIApplication sendEvent:] + 447
    11  UIKit                               0x002c6f2e _UIApplicationHandleEvent + 7576
    12  GraphicsServices                    0x01887992 PurpleEventCallback + 1550
    13  CoreFoundation                      0x00f10944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    14  CoreFoundation                      0x00e70cf7 __CFRunLoopDoSource1 + 215
    15  CoreFoundation                      0x00e6df83 __CFRunLoopRun + 979
    16  CoreFoundation                      0x00e6d840 CFRunLoopRunSpecific + 208
    17  CoreFoundation                      0x00e6d761 CFRunLoopRunInMode + 97
    18  GraphicsServices                    0x018861c4 GSEventRunModal + 217
    19  GraphicsServices                    0x01886289 GSEventRun + 115
    20  UIKit                               0x002cac93 UIApplicationMain + 1160
    21  PhotoScroller                       0x00001c20 main + 102
    22  PhotoScroller                       0x00001bb1 start + 53
    23  ???                                 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'

but if i use the same code in paging scroll view it works perfectly

parts of my code:

UIButton *iButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
iButton.frame = CGRectMake(269.0f, 17.0f, 18.0f, 19.0f);
iButton.backgroundColor = [UIColor clearColor];
[iButton addTarget:self action:@selector(buttonPressed) 
forControlEvents:UIControlEventTouchUpInside];    
[self.view addSubview:iButton];

-(void)buttonPressed{
    NSLog(@"button pressed in PSV...");
}

I do not understand it, I expect that it will work.I just want to understand why it do not works.

static view is subclass of ViewController
paging scroll view is subclass of UIScrollView <UIScrollViewDelegate>

thanks for all the answers.

  • 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-20T23:36:45+00:00Added an answer on May 20, 2026 at 11:36 pm

    The selector you specify for an action of a button should take a single argument of type id. So, try changing your selector specification to @selector(buttonPressed:) and change your action method to be:

    - (void)buttonPressed:(id)sender { ... }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm about to start on a large Qt application, which is made up of
I am collecting logs from several custom made applications. Each application has it's own
I want to extend an existing application I made to make it set mixer
I have an application that is made up of the following: A central database
I have made a custom UserControl i Vb.net (windows application). How can I add
I'm creating a WPF application where several ListView selections are made in a row
I have an application where it was requested that a friendly url be made
I have made a SVG image, or more like mini application, for viewing graphs
I have to use a class/assembly made in C# .NET from native C++ application.
I'm making some changes to a legacy classic ASP application. I've made the changes

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.