0

I use storyboard to build a tableview, and set Content to static, I design some custom cells in the tableview, each one were different, and what I want is, when I click 3rd cell, a new custom cell with a datePicker in it will be inserted next to 3rd cell, just like create a new event in iPhone calendar, but I tried many ways, all failed.

Who has experience can share with me, or maybe I need consider another way? Kindly advise me, thanks~

Xcobe
  • 111
  • 2
  • 7

2 Answers2

0

Apple has some sample code in place for this in DateCell

You can also check some related discussion in iOS 7 - How to display a date picker in place in a table view?

Community
  • 1
  • 1
spassas
  • 4,778
  • 2
  • 31
  • 39
0

You can use sections in table view for this. Initially hide the table view with the date picker cell. On the 3rd cell click reload the table view with the required cell using the data or just unhide the view.

JIthin
  • 1,413
  • 1
  • 13
  • 29