質問

This might be a totally stupid question, but I'm trying to follow the DateCell example in the WWDC sample code to have a date picker in the UITableViewCell.

In the Apple example, the height is 216 and fits the entire UITableViewCell that also has a height of 216.

In my own storyboard, I manually set the height of the UITableViewCell to 216 & then I tried adding a UIDatePicker to the UITableViewCell.
I am neither able to set the height by dragging the UITableViewCell nor enter the height.

enter image description here

enter image description here

Is there a checkbox or setting I am missing somewhere?
Thanks.

役に立ちましたか?

解決 2

You can't resize the UIDatePicker from the xib.
You can programmatically resize it though but then again only upto a certain minimum height.

Check out the following similar questions:

他のヒント

Follow these steps:

  1. Right click on Your xib or Storyboard
  2. Select "Open As" option
  3. Select "Source Code" option
  4. Now, Search "datePicker" and change frame of Date Picker
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top