ソースを参照

Replace symbols deprecated for iOS 6.0

Felix Paul Kühne 11 年 前
コミット
91f96ce6dc

+ 1 - 1
AspenProject/VLCLocalServerListViewController.m

@@ -204,7 +204,7 @@
 
         if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
             navCon.modalPresentationStyle = UIModalPresentationFormSheet;
-            [self presentModalViewController:navCon animated:YES];
+            [self presentViewController:navCon animated:YES completion:nil];
 
             if (_loginViewController.navigationItem.leftBarButtonItem == nil) {
                 UIBarButtonItem *doneButton = [UIBarButtonItem themedDoneButtonWithTarget:_loginViewController andSelector:@selector(dismissWithAnimation:)];

+ 1 - 1
AspenProject/VLCPlaylistViewController.m

@@ -67,7 +67,7 @@
 
     self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
     self.emptyLibraryView = [[[NSBundle mainBundle] loadNibNamed:@"VLCEmptyLibraryView" owner:self options:nil] lastObject];
-    _emptyLibraryView.emptyLibraryLongDescriptionLabel.lineBreakMode = UILineBreakModeWordWrap;
+    _emptyLibraryView.emptyLibraryLongDescriptionLabel.lineBreakMode = NSLineBreakByWordWrapping;
     _emptyLibraryView.emptyLibraryLongDescriptionLabel.numberOfLines = 0;
 }
 

+ 3 - 3
AspenProject/VLCSettingsController.m

@@ -43,7 +43,7 @@
         if (passcodeOn) {
             PAPasscodeViewController *passcodeLockController = [[PAPasscodeViewController alloc] initForAction:PasscodeActionSet];
             passcodeLockController.delegate = self;
-            [self.viewController presentModalViewController:passcodeLockController animated:YES];
+            [self.viewController presentViewController:passcodeLockController animated:YES completion:nil];
         }
     }
 }
@@ -65,7 +65,7 @@
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
     [defaults setObject:@(NO) forKey:kVLCSettingPasscodeOnKey];
     [defaults synchronize];
-    [controller dismissModalViewControllerAnimated:YES];
+    [controller dismissViewControllerAnimated:YES completion:nil];
 }
 
 - (void)PAPasscodeViewControllerDidSetPasscode:(PAPasscodeViewController *)controller
@@ -77,7 +77,7 @@
     VLCAppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
     appDelegate.nextPasscodeCheckDate = [NSDate dateWithTimeIntervalSinceNow:300];
 
-    [controller dismissModalViewControllerAnimated:YES];
+    [controller dismissViewControllerAnimated:YES completion:nil];
 }
 
 @end

+ 2 - 2
AspenProject/VLCSidebarViewCell.m

@@ -33,8 +33,8 @@
         self.textLabel.adjustsFontSizeToFitWidth = YES;
         if ([self.textLabel respondsToSelector:@selector(setAdjustsLetterSpacingToFitWidth:)])
             self.textLabel.adjustsLetterSpacingToFitWidth = YES;
-        self.textLabel.minimumFontSize = 9.0f;
-        self.textLabel.lineBreakMode = UILineBreakModeTailTruncation;
+        self.textLabel.minimumScaleFactor = 0.5f;
+        self.textLabel.lineBreakMode = NSLineBreakByTruncatingTail;
 
         UIView *topLine = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, [UIScreen mainScreen].bounds.size.height, 1.0f)];
         topLine.backgroundColor = [UIColor colorWithRed:(16.0f/255.0f) green:(16.0f/255.0f) blue:(16.0f/255.0f) alpha:1.0f];

+ 3 - 3
PAPasscode/PAPasscodeViewController.m

@@ -154,7 +154,7 @@
     promptLabel.font = [UIFont boldSystemFontOfSize:17];
     promptLabel.shadowColor = [UIColor whiteColor];
     promptLabel.shadowOffset = CGSizeMake(0, 1);
-    promptLabel.textAlignment = UITextAlignmentCenter;
+    promptLabel.textAlignment = NSTextAlignmentCenter;
     promptLabel.numberOfLines = 0;
     [contentView addSubview:promptLabel];
     
@@ -165,7 +165,7 @@
     messageLabel.font = [UIFont systemFontOfSize:14];
     messageLabel.shadowColor = [UIColor whiteColor];
     messageLabel.shadowOffset = CGSizeMake(0, 1);
-    messageLabel.textAlignment = UITextAlignmentCenter;
+    messageLabel.textAlignment = NSTextAlignmentCenter;
     messageLabel.numberOfLines = 0;
 	messageLabel.text = _message;
     [contentView addSubview:messageLabel];
@@ -183,7 +183,7 @@
     failedAttemptsLabel.font = [UIFont boldSystemFontOfSize:15];
     failedAttemptsLabel.shadowColor = [UIColor blackColor];
     failedAttemptsLabel.shadowOffset = CGSizeMake(0, -1);
-    failedAttemptsLabel.textAlignment = UITextAlignmentCenter;
+    failedAttemptsLabel.textAlignment = NSTextAlignmentCenter;
     failedAttemptsLabel.hidden = YES;
     [contentView addSubview:failedAttemptsLabel];