Develop
2015.10.23 14:01
[ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기
Views 1308 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 •
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
513 | Develop |
[jsp] Get방식, Post방식 전송 예제..
![]() |
hooni | 2003.04.23 | 13807 |
512 | Develop |
[jsp] HelloServlet 출력문
![]() |
hooni | 2003.04.23 | 7852 |
511 | Develop |
[jsp] RSS(xml) 파싱해서 보여주기 ㅎㅎ
![]() |
hooni | 2013.04.23 | 13244 |
510 | Develop |
[jsp] 유효성체크(Client, Server 에서)
![]() |
hooni | 2003.04.23 | 7473 |
509 | Develop |
[jsp] 정적/동적(차트생성) 이미지 전달
![]() |
hooni | 2003.04.23 | 7349 |
508 | Develop |
[jsp] 초간단한 include 구문 예제..
![]() |
hooni | 2013.04.23 | 7246 |
507 | Develop | [jsp] 페이지에 한글이 정상적으로 보이지 않을 때.. | hooni | 2013.04.23 | 8180 |
506 | Develop |
[jsp][php] LDAP 프로그래밍..
![]() |
hooni | 2003.04.23 | 7419 |
505 | Develop |
[jsp][php] 간단한 강좌 자료..
![]() |
hooni | 2003.04.23 | 8158 |
504 | Develop |
[js] 2048 예쁘게 만들고 있는거.. ㅋㄷ
![]() |
hooni | 2015.01.30 | 0 |
503 | Develop |
[js] 2차 잉여.. (Quadratic reciprocity) 계산..
![]() |
hooni | 2013.04.23 | 7099 |
502 | Develop | [js] ajax를 이용해 외부문서 불러오기.. | hooni | 2013.04.23 | 6814 |