IPhone: TabBar overlaps over UIScrollView

I created a programming interface for the iPhone, but I just can't figure out how to fit the view so that it doesn't overlap the TabBar. Here is the ownership hierarchy:

- AppDelegate

  • UITabBarController
    • UINavigationController x
      • UITableViewController
        • UIViewController (with XIB)
          • UIScrollViewController (in the same XIB as the parent)

The problem is that my TabBar is hiding part of my UIScrollView (and my tables as well, but that doesn't matter). I tried to manipulate the size of the contents of the scrollview and the frame size of the view, but no luck.

So far, the best I could do was add a padding of 60 pixels to the size of the scroll content, for example:

[scrollView setContentSize:CGSizeMake(self.view.frame.size.width, self.view.frame.size.height+60)];

Thank you for your help!

+3
1

, , , , scrollView . ContentSize scrollView. , . scrollView nib , - , .

+4

Source: https://habr.com/ru/post/1763212/


All Articles