equal
deleted
inserted
replaced
237 else { |
237 else { |
238 // this causes a sporadic crash on the ipad but without this rotation doesn't work on iphone |
238 // this causes a sporadic crash on the ipad but without this rotation doesn't work on iphone |
239 StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
239 StatsPageViewController *statsPage = [[StatsPageViewController alloc] initWithStyle:UITableViewStyleGrouped]; |
240 [self presentModalViewController:statsPage animated:NO]; |
240 [self presentModalViewController:statsPage animated:NO]; |
241 |
241 |
242 statsPage.statsDictionary = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; |
242 NSArray *stats = [[SDLUIKitDelegate sharedAppDelegate] startSDLgame:allDataNecessary]; |
243 if (statsPage.statsDictionary == nil) |
243 if ([stats count] == 0) |
244 [statsPage dismissModalViewControllerAnimated:NO]; |
244 [statsPage dismissModalViewControllerAnimated:NO]; |
245 else |
245 else { |
|
246 statsPage.statsArray = stats; |
246 [statsPage.tableView reloadData]; |
247 [statsPage.tableView reloadData]; |
247 DLog(@"%@",statsPage.statsDictionary); |
248 [statsPage viewWillAppear:YES]; |
|
249 } |
|
250 |
248 [statsPage release]; |
251 [statsPage release]; |
249 } |
252 } |
250 |
253 |
251 } |
254 } |
252 |
255 |