Hi, I have created a view controller that has a date picker and a button that
says "Select".  When a user click in the "Date" field, I set the InputView
to my DatePickerView. My date picker view slides up and look great.  

Main.cs
                partial void pickDateFrom (UITextField sender)
                {
                        textDateFrom.InputView = datePickerView.View;
                }

The problem is when I click my "Select" button on the date picker view, the
app crashes.  This is without any code, just hooking up the outlet to
TouchUpInside crashes the app.  

Perhaps I am approaching this the wrong way to pick a date or there is
something I am missing.  Any help would be appreciated.  Thanks.  

Error:
2011-06-21 18:57:27.040 BMA[3794:207] -[DatePickerView dateSelected:]:
unrecognized selector sent to instance 0x717b2b0

Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C
exception thrown.  Name: NSInvalidArgumentException Reason: -[DatePickerView
dateSelected:]: unrecognized selector sent to instance 0x717b2b0
  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String
principalClassName, System.String delegateClassName) [0x00038] in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in
/Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:31 
  at BMA.Application.Main (System.String[] args) [0x00000] in
/Users/vbisbest/Projects/BMA/BMA/Main.cs:17 


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Crash-with-InputView-on-UITextField-tp3615597p3615597.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to