Resize UITableView Header AND containing UITextView (iOS7 + AutoLayout)

后端 未结 4 472
一个人的身影
一个人的身影 2020-12-25 08:37

I\'ve been struggling with this now for a little while, and I want to make sure I\'m doing this the right way. For reference, I am using AutoLayout with Storyboards, and it

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-25 09:29

    I would suggest setting the height programatically. You can calculate the hight of the textview with boundingRectWithSize:options:context

    Then you just set the frame of the tableViewHeader.

提交回复
热议问题