ViewController *vc; Returns the receiver's next responder, or The next object in the responder chain to be presented with an event for handling. The
vc = (ViewController*)[btn.superview nextResponder];
vc = (ViewController*)[view.superview nextResponder];
nextResponder
nil
if it has none.Return Value
Discussion
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
See Also
Declared In
'Developer > iOS' 카테고리의 다른 글
[iOS] UISwipeGestureRecognizer 등록하는 법 (1) | 2011.06.07 |
---|---|
[iOS] 페이지 넘기는 효과 (1) | 2011.06.07 |
[iOS] Class 비교하기. (1) | 2011.05.27 |
[iOS] UILabel 의 텍스트 만큼 자동으로 맞추기 (1) | 2011.05.25 |
[iOS] 어플에서 어플 실행시키기(앱에서 앱 실행 시키기) (6) | 2011.05.25 |