开发者

Presenting the UIDatePicker like in iOS Calendar app

开发者 https://www.devze.com 2023-03-18 08:09 出处:网络
I\'ve managed to get the UIDatePicker to a UITableView and it works fine, shows and hides when you click on other cells.But there are two problems.

I've managed to get the UIDatePicker to a UITableView and it works fine, shows and hides when you click on other cells. But there are two problems.

Since I added it to the view, I can't use ScrollPositionMiddle since the UIDatePicker will cover it up. The other problem is that I can't scroll down to my other cells 'cause it's blocking it from 开发者_如何学Goview. Anyone have any better implementations on how to add the UIDatePicker to a UITableView?


Sounds like the only step you're missing is to set the contentInsets of the table view to the size of the overlap. That should fix the rest of your problems.

0

精彩评论

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