2
0

Work-around for iOS 6 bug.

[FIXED]     iOS 6 SDK seems to crash on iOS 5 devices when doing
            scrollEnabled.
This commit is contained in:
Maarten Billemont 2012-09-19 23:29:21 +02:00
parent 699d0869fc
commit 6da15306b0
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@
[[[NSBundle mainBundle] mutableInfoDictionary] setObject:@"Master Password" forKey:@"CFBundleDisplayName"]; [[[NSBundle mainBundle] mutableInfoDictionary] setObject:@"Master Password" forKey:@"CFBundleDisplayName"];
[[[NSBundle mainBundle] mutableLocalizedInfoDictionary] setObject:@"Master Password" forKey:@"CFBundleDisplayName"]; [[[NSBundle mainBundle] mutableLocalizedInfoDictionary] setObject:@"Master Password" forKey:@"CFBundleDisplayName"];
#ifdef ADHOC #ifdef TESTFLIGHT_SDK_VERSION
@try { @try {
NSString *testFlightToken = [self testFlightToken]; NSString *testFlightToken = [self testFlightToken];
if ([testFlightToken length]) { if ([testFlightToken length]) {

View File

@ -426,7 +426,7 @@
// User was just selected. // User was just selected.
self.passwordView.alpha = 1; self.passwordView.alpha = 1;
self.avatarsView.center = CGPointMake(160, 180); self.avatarsView.center = CGPointMake(160, 180);
self.avatarsView.scrollEnabled = NO; //self.avatarsView.scrollEnabled = NO;
self.nameLabel.center = CGPointMake(160, 94); self.nameLabel.center = CGPointMake(160, 94);
self.nameLabel.backgroundColor = [UIColor blackColor]; self.nameLabel.backgroundColor = [UIColor blackColor];
self.oldNameLabel.center = self.nameLabel.center; self.oldNameLabel.center = self.nameLabel.center;
@ -437,7 +437,7 @@
self.passwordField.text = nil; self.passwordField.text = nil;
self.passwordView.alpha = 0; self.passwordView.alpha = 0;
self.avatarsView.center = CGPointMake(160, 310); self.avatarsView.center = CGPointMake(160, 310);
self.avatarsView.scrollEnabled = YES; //self.avatarsView.scrollEnabled = YES;
self.nameLabel.center = CGPointMake(160, 296); self.nameLabel.center = CGPointMake(160, 296);
self.nameLabel.backgroundColor = [UIColor clearColor]; self.nameLabel.backgroundColor = [UIColor clearColor];
self.oldNameLabel.center = self.nameLabel.center; self.oldNameLabel.center = self.nameLabel.center;