Fixed displaying of selected city after showing all cities in MAPS.ME.
This commit is contained in:
parent
3e726956a7
commit
1425381157
3 changed files with 2 additions and 6 deletions
|
@ -51,6 +51,7 @@
|
|||
MasterViewController * masterVC = self.navigationController.viewControllers[0];
|
||||
if (!masterVC.detailViewController)
|
||||
masterVC.detailViewController = [[CityDetailViewController alloc] initWithNibName:@"CityDetailViewController" bundle:nil];
|
||||
masterVC.detailViewController.city = masterVC.capitals[cityId];
|
||||
masterVC.detailViewController.cityIndex = cityId;
|
||||
[masterVC.navigationController pushViewController:masterVC.detailViewController animated:YES];
|
||||
}
|
||||
|
|
|
@ -33,5 +33,6 @@
|
|||
@interface MasterViewController : UITableViewController
|
||||
|
||||
@property (strong, nonatomic) CityDetailViewController * detailViewController;
|
||||
@property (strong, nonatomic) NSArray * capitals;
|
||||
|
||||
@end
|
||||
|
|
|
@ -31,12 +31,6 @@
|
|||
|
||||
#import "MapsWithMeAPI.h"
|
||||
|
||||
@interface MasterViewController ()
|
||||
|
||||
@property (strong, nonatomic) NSArray * capitals;
|
||||
|
||||
@end
|
||||
|
||||
@implementation MasterViewController
|
||||
|
||||
- (CityDetailViewController *)detailViewController
|
||||
|
|
Loading…
Add table
Reference in a new issue