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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:38:53+00:00 2026-05-24T22:38:53+00:00

I have the same problem as mention in this Link I have UIControl (named

  • 0

I have the same problem as mention in this Link I have UIControl (named GCDatePickerControl) and i have another Class (named GCCalendarPortraitView)
In the Class GCCalendarPortraitView i have code

dayPicker = [[GCDatePickerControl alloc] init];
dayPicker.frame = CGRectMake(0, 0, self.view.frame.size.width, 0);
dayPicker.autoresizingMask = UIViewAutoresizingNone;
dayPicker.date = date;
[dayPicker addTarget:self action:@selector(datePickerDidChangeDate:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:dayPicker]; 

where dayPicker is the object of GCDatePickerControl class

in the GCDatePickerControl i have code

[self sendActionsForControlEvents:UIControlEventValueChanged];

if i comment any of the below line my code app runs fine

[self sendActionsForControlEvents:UIControlEventValueChanged];
[dayPicker addTarget:self action:@selector(datePickerDidChangeDate:) forControlEvents:UIControlEventValueChanged];

but if i uncomment both the line my App crush show show me this result on console

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CALayerArray datePickerDidChangeDate:]: unrecognized selector sent to instance 0x7a2cc30'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x02c86919 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x02dd45de objc_exception_throw + 47
    2   CoreFoundation                      0x02c8842b -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x02bf8116 ___forwarding___ + 966
    4   CoreFoundation                      0x02bf7cd2 _CF_forwarding_prep_0 + 50
    5   UIKit                               0x00303e14 -[UIApplication sendAction:to:from:forEvent:] + 119
    6   UIKit                               0x0038d6c8 -[UIControl sendAction:to:forEvent:] + 67
    7   UIKit                               0x0038fb4a -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
    8   UIKit                               0x0038d67f -[UIControl sendActionsForControlEvents:] + 49
    9   CalendarApp                         0x00016d7f -[GCDatePickerControl buttonPressed:] + 437
    10  UIKit                               0x00303e14 -[UIApplication sendAction:to:from:forEvent:] + 119
    11  UIKit                               0x0038d6c8 -[UIControl sendAction:to:forEvent:] + 67
    12  UIKit                               0x0038fb4a -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
    13  UIKit                               0x0038e6f7 -[UIControl touchesEnded:withEvent:] + 458
    14  UIKit                               0x003272ff -[UIWindow _sendTouchesForEvent:] + 567
    15  UIKit                               0x003091ec -[UIApplication sendEvent:] + 447
    16  UIKit                               0x0030dac4 _UIApplicationHandleEvent + 7495
    17  GraphicsServices                    0x03413afa PurpleEventCallback + 1578
    18  CoreFoundation                      0x02c67dc4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    19  CoreFoundation                      0x02bc8737 __CFRunLoopDoSource1 + 215
    20  CoreFoundation                      0x02bc59c3 __CFRunLoopRun + 979
    21  CoreFoundation                      0x02bc5280 CFRunLoopRunSpecific + 208
    22  CoreFoundation                      0x02bc51a1 CFRunLoopRunInMode + 97
    23  GraphicsServices                    0x034122c8 GSEventRunModal + 217
    24  GraphicsServices                    0x0341238d GSEventRun + 115
    25  UIKit                               0x00311b58 UIApplicationMain + 1160
    26  CalendarApp                         0x000025c4 main + 102
    27  CalendarApp                         0x00002555 start + 53
    28  ???                                 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'

i am unable to trace out my problem plz any one help me Thank You

  • 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-24T22:38:55+00:00Added an answer on May 24, 2026 at 10:38 pm

    This error occurs when the control try to call the selector on the given target and that’s doesn’t exist. In your case have you checked that “datePickerDidChangeDate:” exists? It may be just a typo error.

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

Sidebar

Related Questions

This is pretty much the same problem i have, except with very different code:
I have basically the same problem outlined in this question, however I am using
I have the same problem as described in the posts listed below. That is,
I have the same problem as described in ( Last record of Join table
I have the same problem as in the following post . So I am
Solution: if you have the same problem, addElement() instead of addChild() is what did
Does anyone have the same problem as I do? ... I've upgraded to the
I have essentially the same problem discussed here: http://khason.net/blog/dependency-property-getters-and-setters-in-multithreaded-environment/ public static readonly DependencyProperty MyPropertyProperty
I have the same question problem as described here How to purge a cached
I actually have two questions regarding the same problem but I think it is

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.