Created
October 14, 2010 09:44
-
-
Save marshluca/625953 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)showDetails:(id)sender | |
{ | |
[self.navigationController setToolbarHidden:YES animated:NO]; | |
PlaceOneViewController *poController = [[PlaceOneViewController alloc] initWithDict:[sender dict]]; | |
[self.navigationController pushViewController:poController animated:YES]; | |
} | |
- (void)loadButton | |
{ | |
MyButton *rightButton = [[MyButton alloc] initWithDict:annotation.dict]; | |
[rightButton setImage:[UIImage imageNamed:@"flag.png"] forState:UIControlStateNormal]; | |
rightButton.frame = CGRectMake(0, 0, 25, 25); | |
[rightButton addTarget:self action:@selector(showDetails:) forControlEvents:UIControlEventTouchUpInside]; | |
[self.view addSubview:rightButton]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment