Develop
2015.10.12 14:48
[ios] 상위 ViewController 가져오기
조회 수 945 댓글 0
상위 ViewController 가져오기
UIViewController *vc; vc = (UIViewController*)[btn.superview nextResponder]; vc = (UIViewController*)[view.superview nextResponder];
nextResponder
Returns the receiver's next responder, or nil
if it has none.
- (UIResponder *)nextResponder
Return Value
The next object in the responder chain to be presented with an event for handling.
Discussion
The UIResponder
class does not store or set the next responder automatically, instead returning nil
by default. Subclasses must override this method to set the next responder. UIView
implements this method by returning the UIViewController
object that manages it (if it has one) or its superview (if it doesn’t); UIViewController
implements the method by returning its view’s superview; UIWindow
returns the application object, and UIApplication
returns nil
.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIResponder.h
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
1077 | Develop | [Xcode] 디버깅 옵션 | hooni | 2013.04.23 | 57194 |
1076 | Develop | [winmobile] 윈도우 모바일 간단한 테스트 코드 ㅋㅋ | hooni | 2013.04.23 | 17081 |
1075 | System/OS | [windows] 패스워드를 잊어먹었을때.. | hooni | 2003.04.23 | 17294 |
1074 | System/OS | [windows] 최근 열어본 문서목록 안나오게 하는 방법 | hooni | 2013.04.23 | 25471 |
1073 | System/OS | [windows] 종료, 재시작, 로그아웃 아이콘 만들기 | hooni | 2013.04.23 | 18102 |
1072 | System/OS | [windows] 인터넷 익스플로러(IE) 도구모음 표시줄에 아이콘 추가 | hooni | 2013.04.23 | 18217 |
1071 | System/OS | [windows] 윈도우즈 콘솔에서 정품인증 하는 방법 | hooni | 2017.05.24 | 5261 |
1070 | System/OS | [windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법 | hooni | 2015.07.09 | 20848 |
1069 | System/OS | [windows] 원격 데스크탑(터미널 서비스) 포트 변경 | hooni | 2013.04.23 | 16300 |
1068 | System/OS | [windows] 여러가지 활용 팁 | hooni | 2003.04.23 | 19963 |
1067 | System/OS | [windows] 배치(bat)파일 제작 방법 | hooni | 2003.04.23 | 16996 |
1066 | System/OS | [windows] 도스 사용 팁 | hooni | 2003.04.23 | 17800 |