Develop
2015.10.23 14:01
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
조회 수 1191 댓글 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 •
-
[iphone] 파일 업로드 샘플 코드 ㅎㅎ
-
[js] JSON 컨트롤.. 재귀호출로 값 출력하기
-
[js] 모바일웹에서 이미지 저장하는거 (context menu) 막기
-
[android] keytool을 사용하여 키스토어 생성
-
[js]모바일 웹에서 orientationchange
-
서기의 PHP 동영상 강의(싱싱해)
-
[js] 자바스크립트의 클로저 (JavaScript's Closure)
-
[Android] 2010년에 만들었던 세미나 자료.
-
[iphone] PerfectlyClear 보정솔루션 최신..
-
[ios] IB 없이 개발하기 (html)
-
[ios] 스터디 자료 (from 종길M)
-
[ios] 패스(path) 앱 메뉴 스타일