Develop
2015.10.23 14:01
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
Views 1294 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 •
-
[ios] 동영상 플레이어 샘플 (for Local File)
-
[ios] 최상위 ViewController 가져오기
-
[ios] FlckrFeed Example App (Swift)
-
[maven] Mac OS에 메이븐(maven) 설치하기
-
[ios] UIView 계층구조
-
[ios] Objective-C Types & Storage Capacity
-
GPL, AGPL, MPL,.. 한눈에 보는 오픈소스SW 라이선스
-
[ios] 코코아 프로그래밍의 네이밍 룰(명명 규칙)
-
[js] Click button copy to clipboard
-
[coding] Find all anagrams in a string
-
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
-
[android] Calling activity function from separate class