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:
質問
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.
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: