开发者

Determine client area for tab bar controller

开发者 https://www.devze.com 2023-01-07 13:20 出处:网络
One of my tab bar\'s items is UIViewController representing UIScrollView. Once the scroll view is created I need to setContentSize, but I don\'t know how to calculate size from its controller, conside

One of my tab bar's items is UIViewController representing UIScrollView. Once the scroll view is created I need to setContentSize, but I don't know how to calculate size from its controller, considering tab bar area. I would consider to avoid hard coding开发者_运维技巧.


Look at the frame of your tab bar controller, and your UIScreen applicationFrame do some math. The difference in the subtraction will be how much space you have to work with.

0

精彩评论

暂无评论...
验证码 换一张
取 消