Setting a UITableView's contentInset through Storyboard in Xcode 6

前端 未结 1 417
天涯浪人
天涯浪人 2021-01-08 01:00

On Xcode 6, it seems that the ability to set the content inset of a scroll view/table view through UIStoryboard has been taken away. See image below:

相关标签:
1条回答
  • 2021-01-08 01:34

    You can do that by using KVC

    1. Select table view
    2. Choose Identity Inspector
    3. Press "+" in "User defined runtime attributes"
    4. Add your inset as a Rect {{10,15},{25,10}} for KeyPath contentInset

    Screenshot here:

    0 讨论(0)
提交回复
热议问题