Develop
2015.10.23 14:01
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
Views 1306 Comment 0
후킹이라기보다 교체? ㅋㄷ
방법이 많음..
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:@selector(backButtonTapped:)]; self.navigationItem.leftBarButtonItem = backButton;
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(backButtonTapped:)]; self.navigationItem.leftBarButtonItem = backButton;
UIImage *backButtonImage = [UIImage imageNamed:@"back_arrow.png"]; UIButton *leftBarButton = [UIButton buttonWithType:UIButtonTypeCustom]; // Setting the image for the back button [leftBarButton setBackgroundImage:backButtonImage forState:UIControlStateNormal]; [leftBarButton addTarget:self action:@selector(backButtonTapped:) forControlEvents:UIControlEventTouchUpInside]; // setting the frame for the back button leftBarButton.frame = CGRectMake(0, 0, 65, 32); // setting the custom button to navigationbars back button self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:leftBarButton];
TAG •
-
DDay Memo 1.9.4 소스코드
-
[ios] 최상위 ViewController 가져오기
-
[ios] 상위 ViewController 가져오기
-
[c] 기막힌 정렬 코드 ㅋㄷ
-
[eng] 숙제 ㅋㅋㅋ
-
[linux] CentOS Apache 웹서버에 HTTPS 적용
-
[ios] ViewController Push할 때 애니메이션 효과
-
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
-
[c] 한글 문자열 출력
-
[php] 한글 문자열 자르기 (utf-8)
-
[ppt] OCB기술개발팀 OJT 자료
-
[js] AngularJS 란?