Develop
2015.10.23 14:01
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
조회 수 1188 댓글 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] 로컬에 있는 JS 파일 웹뷰에서 동적으로 실행하기
-
[ios] 상위 ViewController 가져오기
-
[ios] 오브젝티브C→스위프트, 코드 변환 손쉽게
-
[ios] APNS, Remote Push 수신 시점에서 앱의 3가지 실행 상태
-
'2014 모바일 개발 트렌드' 발표자료입니다.
-
[ios] Xcode의 디버그 모드에서 콜스택
-
[js] 스크롤 이벤트 막기
-
[c] FSN 온라인 코딩 테스트 (Sorting, Binary Search)
-
[ios] Did UIScrollView End Scrolling?
-
[ios] 로컬에 있는 html 실행하기
-
[ios] 최상위 ViewController 가져오기
-
[ios] StoryBoard(xib) 없이 프로젝트 만들기