diff options
author | v.mikhaylenko <v.mikhaylenko@corp.mail.ru> | 2015-05-25 16:13:04 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:52:39 +0300 |
commit | 279c4e252521359d59d76e533b7cde41a74183e9 (patch) | |
tree | 614a5a8462f69c0b81342d7fbcf19f49cf2e8f18 /iphone/Maps/Classes/UIViewController+Navigation.mm | |
parent | 279e4649433bcbc06e888d557f77d7dd8708fa98 (diff) |
[ios] Made place page for iPad. Added big compas view. Added bookmarks edit.
Diffstat (limited to 'iphone/Maps/Classes/UIViewController+Navigation.mm')
-rw-r--r-- | iphone/Maps/Classes/UIViewController+Navigation.mm | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/iphone/Maps/Classes/UIViewController+Navigation.mm b/iphone/Maps/Classes/UIViewController+Navigation.mm index c5a4a17c69..974548cd34 100644 --- a/iphone/Maps/Classes/UIViewController+Navigation.mm +++ b/iphone/Maps/Classes/UIViewController+Navigation.mm @@ -6,14 +6,15 @@ - (void)showBackButton { - UIButton * backButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 56, 44)]; - [backButton addTarget:self action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; - [backButton setImage:[UIImage imageNamed:@"NavigationBarBackButton"] forState:UIControlStateNormal]; - - UIBarButtonItem * space = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil]; - space.width = isIOSVersionLessThan(7) ? -8 : -16; - UIBarButtonItem * item = [[UIBarButtonItem alloc] initWithCustomView:backButton]; - self.navigationItem.leftBarButtonItems = @[space, item]; +// UIButton * backButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 56, 44)]; +// [backButton addTarget:self action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; +// [backButton setImage:[UIImage imageNamed:@"NavigationBarBackButton"] forState:UIControlStateNormal]; +// +// UIBarButtonItem * space = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil]; +// space.width = SYSTEM_VERSION_IS_LESS_THAN(@"7") ? -8 : -16; + UIBarButtonItem * leftItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"NavigationBarBackButton"] style:UIBarButtonItemStylePlain target:self action:@selector(backButtonPressed:)]; +// UIBarButtonItem * item = [[UIBarButtonItem alloc] initWithCustomView:backButton]; + self.navigationItem.leftBarButtonItem = leftItem; } - (void)backButtonPressed:(id)sender |