gpt4 book ai didi

UITableView 在 iOS 7 中以偏移量开始

转载 作者:行者123 更新时间:2023-12-03 04:39:10 25 4
gpt4 key购买 nike

我已将一个简单的 UITableView 拖到 iOS 7 中的 UIViewController 上。

现在,在第一个单元格开始之前有一个垂直的空间偏移。我该如何摆脱它?我希望第一行更接近 UITableView 实际开始位置的上边缘。我没有要求大偏移量吧?

enter image description here

有什么想法吗?

最佳答案

UIViewController 的新 iOS 7 实现有一组新选项,允许开发人员选择系统是否自动为 UIScrollView 添加插图 strong>、UITableView 及其派生。

要禁用此行为,请在 UIViewController 所选对象检查器上取消选中 InterfaceBuilder 中所有所需 UIViewController 的这些框:

View Controller Inspector

了解更多详情:

  1. Submit your iOS 7 apps today.
  2. iOS 7 UI Transition Guide > Appearance and Behavior

关于UITableView 在 iOS 7 中以偏移量开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18388429/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com