Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)useCustomBackButton
- {
- UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
- backButton.frame = CGRectMake(0, 0, 63, 44);
- [backButton setImage:[UIImage imageNamed:@"Btn_Back"] forState:UIControlStateNormal];
- [backButton addTarget:self action:@selector(backButtonPressed) forControlEvents:UIControlEventTouchUpInside];
- UIBarButtonItem *backBarButton = [[UIBarButtonItem alloc] initWithCustomView:backButton];
- self.navigationItem.leftBarButtonItem = backBarButton;
- [backBarButton release];
- }
Add Comment
Please, Sign In to add comment