Develop
2015.10.12 14:48
[ios] 상위 ViewController 가져오기
조회 수 1150 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
117 | System/OS | [linux] Proftpd 설치 가이드 | hooni | 2003.04.23 | 13070 |
116 | System/OS | [linux] 기존 환경설정 저장하면서 커널 컴파일.. | hooni | 2003.04.23 | 13518 |
115 | System/OS | [linux] 스케쥴링 순서(nice) 변경하기 | hooni | 2003.04.23 | 12596 |
114 | System/OS | [linux] 셀 스크립트 if, for, case in.. | hooni | 2003.04.23 | 13738 |
113 | System/OS | [linux] 종료와 종료코드 확인(환경변수에서) | hooni | 2003.04.23 | 15608 |
112 | System/OS | [linux] 프로세스 상태확인(ps) | hooni | 2003.04.23 | 12763 |
111 | System/OS | [linux] 메타(기호)문자의 의미와 사용 | hooni | 2003.04.23 | 16451 |
110 | System/OS | [linux] 특수문자 환경 설정(stty) | hooni | 2003.04.23 | 15333 |
109 | System/OS | [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd | hooni | 2003.04.23 | 32516 |
108 | System/OS | [linux] apache, php, jsp 환경설정하기.. | hooni | 2003.04.23 | 15295 |
107 | System/OS | [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. | hooni | 2003.04.23 | 14771 |
106 | System/OS | [linux] 간단한 NAT 설정 script | hooni | 2003.04.23 | 12644 |