Develop
2015.10.12 14:48
[ios] 상위 ViewController 가져오기
조회 수 960 댓글 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
-
[doc] mfc 매뉴얼 다운 받아서 완성하기.. ㅋㄷ
-
[doc] TCP/IP 강의 자료 (html)
-
[doc] UI개발시 유용한 소프트웨어 (개발 및 디버깅 툴)
-
[doc] 네트워크 장비와 라우터 설정 방법 발표 자료
-
[doc] 논문.. VoIP 관련.. ㅋㅋ
-
[doc] 레드햇 리눅스 메뉴얼 (html버전)
-
[doc] 발표 자료 ㅎㅎtalk4neo
-
[doc] 방송통신공학회 논문지(학술대회)
-
[doc] 웜 프레임워크 검증환경 구축(작성중..)
-
[doc] 위탁과제 제안서와 발표자료(pdf)
-
[doc] 유료 방송 제어 시스템 (CAS) 발표자료
-
[doc] 인공지능 관련 자료(채팅로봇도 포함..)