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.
精彩评论