Develop
2015.10.12 14:48
[ios] 상위 ViewController 가져오기
조회 수 963 댓글 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
-
[js] 자바스크립트의 클로저 (JavaScript's Closure)
-
[Android] 2010년에 만들었던 세미나 자료.
-
네오웹 세미나 자료~
-
논문(BHO)에 들어갈 내용 집에가서 테스트 해볼 것..
-
[iphone] PerfectlyClear 보정솔루션 최신..
-
[doc] BHO관련 발표 자료(디펜스에 쓸꺼)
-
[Android] 제스처 자료..
-
[mysql] MySQL server has gone away 에러 대응
-
[ios] IB 없이 개발하기 (html)
-
[ios] 스터디 자료 (from 종길M)
-
엑셀 함수 총 정리 ㅎㅎ
-
[ios] 패스(path) 앱 메뉴 스타일