简体   繁体   中英

UIDatePicker is crashing on value changed

I have created a method and connected it with value changed event of UIDatePicker, but as soon as I changed the value the app. crashes.

If I remove the connection of UIDatePicker's value changed to my method in Interface builder, then app does not crash.

Can I not connect value change to my own method for UIDatePicker?

Please provide the code that is present in the Event handler function.

If at all, you have a custom View Controller in your app and you have your picker on the View of this view controller, check in your Nib file, the class name that implements your nib viewController. If it is UIViewController, change the name to the Custom ViewController class name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM