forked from mirrors/linphone-iphone
UI: fix tab bar resize on rotation
This commit is contained in:
parent
218f2b872f
commit
c8fa105fe7
3 changed files with 4 additions and 4 deletions
|
|
@ -756,7 +756,7 @@
|
|||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" tag="7" contentMode="scaleAspectFit" image="avatar.png" id="gyO-uH-sSi" userLabel="avatarImage" customClass="UIRoundedImageView">
|
||||
<rect key="frame" x="356" y="74" width="171" height="171"/>
|
||||
<rect key="frame" x="248" y="74" width="171" height="171"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
|
||||
<animations/>
|
||||
<accessibility key="accessibilityConfiguration" label="Contact avatar">
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@
|
|||
<animations/>
|
||||
<nil key="simulatedStatusBarMetrics"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<point key="canvasLocation" x="91" y="310.5"/>
|
||||
<point key="canvasLocation" x="526" y="86.5"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
|
|
|
|||
|
|
@ -596,13 +596,13 @@
|
|||
// 2. tab bar
|
||||
self.tabBarView.frame = tabFrame;
|
||||
CGRect frame = self.tabBarViewController.view.frame;
|
||||
frame.size.width = self.tabBarView.bounds.size.width;
|
||||
frame.size = self.tabBarView.bounds.size;
|
||||
self.tabBarViewController.view.frame = frame;
|
||||
|
||||
// 3. status bar
|
||||
self.statusBarView.frame = statusBarFrame;
|
||||
frame = self.statusBarViewController.view.frame;
|
||||
frame.size.width = self.statusBarView.bounds.size.width;
|
||||
frame.size = self.statusBarView.bounds.size;
|
||||
self.statusBarViewController.view.frame = frame;
|
||||
|
||||
// 4. side menu
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue