Commit 8d4fcc60 authored by Felix Paul Kühne's avatar Felix Paul Kühne

fix cloud storage logo layout failure on iOS 6 and iPad (close #10080)

parent 7de5ebf1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="5023" systemVersion="12F45" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<dependencies>
<deployment version="1296" defaultVersion="1552" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="VLCCloudStorageTableViewController">
......@@ -40,7 +40,7 @@
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" image="dropbox-white.png" id="9">
<rect key="frame" x="70" y="192" width="179" height="60"/>
<autoresizingMask key="autoresizingMask"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="20" customClass="VLCMenuButton">
<rect key="frame" x="120" y="387" width="81" height="39"/>
......@@ -66,4 +66,4 @@
<image name="dropbox-white.png" width="125" height="42"/>
<image name="menuButton.png" width="63" height="39"/>
</resources>
</document>
\ No newline at end of file
</document>
......@@ -76,8 +76,6 @@
[_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"dropbox-white.png"]];
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
[self.loginButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal];
[self.navigationController.toolbar setBackgroundImage:[UIImage imageNamed:@"sudHeaderBg"] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
......@@ -103,6 +101,9 @@
aiFrame.origin.x = (tvSize.width - aiFrame.size.width) / 2.;
aiFrame.origin.y = (tvSize.height - aiFrame.size.height) / 2.;
_activityIndicator.frame = aiFrame;
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
}
- (void)viewWillDisappear:(BOOL)animated
......
......@@ -75,8 +75,6 @@
[_downloadingBarLabel setTitleTextAttributes:@{ UITextAttributeFont : [UIFont systemFontOfSize:11.] } forState:UIControlStateNormal];
[self.cloudStorageLogo setImage:[UIImage imageNamed:@"DriveWhite"]];
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
[self.loginButton setTitle:NSLocalizedString(@"DROPBOX_LOGIN", @"") forState:UIControlStateNormal];
......@@ -137,6 +135,9 @@
aiFrame.origin.x = (tvSize.width - aiFrame.size.width) / 2.;
aiFrame.origin.y = (tvSize.height - aiFrame.size.height) / 2.;
_activityIndicator.frame = aiFrame;
[self.cloudStorageLogo sizeToFit];
self.cloudStorageLogo.center = self.view.center;
}
- (void)viewWillDisappear:(BOOL)animated
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment