[英]I want UITableViewCell to completely cover up the entire screen in ios Swift?
在 viewDidLoad() 中,启用分页:
myTableView.isPagingEnabled = true
然后为您的单元格分配高度,
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return self.myTableView.frame.size.height
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.