Develop
2015.10.12 14:48
[ios] 상위 ViewController 가져오기
조회 수 1173 댓글 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
-
[c]디렉토리 탐색
-
[doc] C++언어 문법 설명서
-
[doc] C언어 문법 설명서
-
[doc] Equation Solving에 대한 발표자료..
-
[doc] Json Framework 설치와 사용
-
[doc] mfc 매뉴얼 다운 받아서 완성하기.. ㅋㄷ
-
[doc] UI개발시 유용한 소프트웨어 (개발 및 디버깅 툴)
-
[doc] 유료 방송 제어 시스템 (CAS) 발표자료
-
[doc] 테크니컬 레포트 (BHO 취약점을 이용한 공격)
-
[erp] SAP 모듈 요약
-
[git] 쉬운 버전관리 Git 설명
-
[html] HTML5 튜토리얼 링크 ㅋㅋ