开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜