1.1 --- a/Source/iPhoneAppDelegate.m Tue Mar 11 17:09:50 2008 -0700
1.2 +++ b/Source/iPhoneAppDelegate.m Wed May 28 12:47:10 2008 -0700
1.3 @@ -44,7 +44,7 @@
1.4 _headline.textAlignment = UITextAlignmentCenter;
1.5 _headline.font = [UIFont boldSystemFontOfSize: 20];
1.6 _headline.minimumFontSize = 14;
1.7 - _headline.adjustsFontSizeToFit = YES;
1.8 + _headline.adjustsFontSizeToFitWidth = YES;
1.9 [_window addSubview: _headline];
1.10
1.11 // Start game:
1.12 @@ -71,7 +71,7 @@
1.13 [game removeObserver: self forKeyPath: @"winner"];
1.14
1.15 if( gameClassName == nil )
1.16 - gameClassName = [[game class] className];
1.17 + gameClassName = [[game class] description];
1.18
1.19 [_contentView startGameNamed: gameClassName];
1.20
1.21 @@ -110,8 +110,8 @@
1.22 alert = [[UIAlertView alloc] initWithTitle: msg
1.23 message: @"Congratulations!"
1.24 delegate:self
1.25 - defaultButton:@"OK"
1.26 - cancelButton:nil otherButtons:nil];
1.27 + cancelButtonTitle:nil
1.28 + otherButtonTitles:nil];
1.29 [alert show];
1.30 [alert release];
1.31 }
1.32 @@ -119,7 +119,7 @@
1.33 }
1.34
1.35
1.36 -- (void)modalView:(UIModalView *)modalView didDismissWithButtonIndex:(NSInteger)buttonIndex;
1.37 +- (void)alertView:(UIAlertView *)modalView didDismissWithButtonIndex:(NSInteger)buttonIndex;
1.38 {
1.39 // Start new game:
1.40 [self startGameNamed: nil];