uiscrollview

I put the UIView inside a scrollview in my iOS app and it does not scroll. What am I doing wrong?

微笑、不失礼 提交于 2021-01-01 09:26:04
问题 In my storyboard I put the UIScrollView on my UIViewController . Inside I put a UIView with a UIButton , but when I run the app I cannot scroll the UIView . What am I doing wrong? This is how the hierarchy looks: and the properties of scroll view: and the view (which has a bigger size than scrollview) : How can I make it scrollable? 回答1: From your image it's look like you are using autolayout. So to make view scrollable you need to set the constraints to scrollview and its sub view.

UITableView header dynamic height in run-time

匆匆过客 提交于 2020-12-29 03:44:28
问题 I know there are a lot of posts about it, but maybe in newest iOS there are some updates on this... I think all of us had a task to create viewController that has a lot of content at the top, most of them are self-sizing, and at the very bottom it figures out that you need to show some tableView with many items... The first solution that can be done is to use UIScrollView , and don't care about reusableCells at all. The second is to use UITableView 's headerView and adjust its height manually

UITableView header dynamic height in run-time

为君一笑 提交于 2020-12-29 03:43:33
问题 I know there are a lot of posts about it, but maybe in newest iOS there are some updates on this... I think all of us had a task to create viewController that has a lot of content at the top, most of them are self-sizing, and at the very bottom it figures out that you need to show some tableView with many items... The first solution that can be done is to use UIScrollView , and don't care about reusableCells at all. The second is to use UITableView 's headerView and adjust its height manually