开发者

Determine client area for tab bar controller

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜