Sfoglia il codice sorgente

settings: add glue code to have the passcode settings display correctly on iPad

Felix Paul Kühne 12 anni fa
parent
commit
f954e4ad1d

+ 5 - 0
AspenProject/VLCSettingsViewController.m

@@ -39,6 +39,11 @@
 {
     if (self.passcodeLockSwitch.on) {
         VLCAppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
+        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
+            CGRect frame = self.view.frame;
+            frame.size.height -= 44.;
+            appDelegate.playlistViewController.passcodeLockViewController.view.frame = frame;
+        }
         [self.view addSubview:appDelegate.playlistViewController.passcodeLockViewController.view];
         [appDelegate.playlistViewController.passcodeLockViewController resetPasscode];
     } else

+ 1 - 0
Resources/VLCPasscodeLockViewController~iphone.xib

@@ -90,6 +90,7 @@
 						<string key="NSFrame">{{80, 191}, {161, 30}}</string>
 						<reference key="NSSuperview" ref="191373211"/>
 						<reference key="NSWindow"/>
+						<reference key="NSNextKeyView"/>
 						<string key="NSReuseIdentifierKey">_NS:9</string>
 						<object class="NSColor" key="IBUIBackgroundColor">
 							<int key="NSColorSpace">3</int>