datecell

iOS 7 - How to display a date picker in place in a table view?

我的梦境 提交于 2019-11-26 12:36:32
In WWDC 2013 video, Apple suggests displaying picker in place in a table view in iOS 7. How to insert and animate a view between table view cells? Like this, from the Apple calendar app: Nitin Gohel With iOS7, Apple released the sample code DateCell . Demonstrates formatted display of date objects in table cells and use of UIDatePicker to edit those values. As a delegate to this table, the sample uses the method "didSelectRowAtIndexPath" to open the UIDatePicker control. For iOS 6.x and earlier, UIViewAnimation is used for sliding the UIDatePicker up on-screen and down off-screen. For iOS 7.x,

iOS 7 - How to display a date picker in place in a table view?

与世无争的帅哥 提交于 2019-11-26 03:03:23
问题 In WWDC 2013 video, Apple suggests displaying picker in place in a table view in iOS 7. How to insert and animate a view between table view cells? Like this, from the Apple calendar app: 回答1: With iOS7, Apple released the sample code DateCell . Demonstrates formatted display of date objects in table cells and use of UIDatePicker to edit those values. As a delegate to this table, the sample uses the method "didSelectRowAtIndexPath" to open the UIDatePicker control. For iOS 6.x and earlier,