Develop
2015.10.12 14:48
[ios] 상위 ViewController 가져오기
조회 수 1174 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
129 | Develop |
[ios] FlckrFeed Example App (Swift)
![]() |
hooni | 2016.11.27 | 1215 |
128 | Develop |
[android] 버전 별 앱 알림 설정으로 이동하는 방법
![]() |
hooni | 2016.11.28 | 2294 |
127 | Etc |
웹 보안 논문 주제 2016
![]() |
hooni | 2016.11.28 | 0 |
126 | PPT |
[ppt] 정보보호관리 발표내용
![]() |
hooni | 2016.11.30 | 1211 |
125 | Etc |
ISMS 인증기준 – 정보보호대책 (시스템개발보안)
![]() |
hooni | 2016.12.01 | 1508 |
124 | PPT |
[ppt] 정보보호관리 발표내용 #2
![]() |
hooni | 2016.12.08 | 1216 |
123 | Develop |
XML, JSON, BSON, MSGPACK 장,단점 비교
![]() |
hooni | 2017.01.11 | 2385 |
122 | Develop |
[ios] 동영상 플레이어 샘플 (for Local File)
![]() |
hooni | 2017.02.07 | 1215 |
121 | Develop |
[ios] 동영상 플레이어 샘플 (for Remote Url)
![]() |
hooni | 2017.02.07 | 1771 |
120 | System/OS |
Enable the Develop Menu in Safari
![]() |
hooni | 2017.02.07 | 1343 |
119 | System/OS |
Enable Safari Hidden Debug Menu in Mac OS X
![]() |
hooni | 2017.02.07 | 1740 |
118 | System/OS |
[android] 초간단 HTTP, POST 전송 샘플
1 ![]() |
hooni | 2017.02.16 | 3659 |