From 1fc2b10e7efe0d47dc4e3ce6a10beec60333904e Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 22 Jan 2014 16:31:26 +0100 Subject: [PATCH] Better comments on how masking works --- Classes/LinphoneUI/UICompositeViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/LinphoneUI/UICompositeViewController.m b/Classes/LinphoneUI/UICompositeViewController.m index 7a1913db0..97e29d9aa 100644 --- a/Classes/LinphoneUI/UICompositeViewController.m +++ b/Classes/LinphoneUI/UICompositeViewController.m @@ -606,6 +606,10 @@ tabFrame.origin.y -= tabFrame.size.height; tabFrame.origin.x -= tabFrame.size.width; contentFrame.size.height = tabFrame.origin.y - contentFrame.origin.y; + + // for some views, we need the content to overlap, in which case + // we insert in the tab XIB a mask with tag -1 and with y = the amount of + // points that the content should overlap. for (UIView *view in self.tabBarViewController.view.subviews) { if(view.tag == -1) { contentFrame.size.height += view.frame.origin.y;