Contents

Develop
2015.10.12 14:48

[ios] 상위 ViewController 가져오기

Views 1170 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

상위 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. UIViewimplements 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.
Declared In

UIResponder.h 


?

  1. EBS [수학영역] 미적분과 통계 기본 - 정규분포의 의미와 특징은?

    Date2015.04.20 CategoryEtc Byhooni Views1101
    Read More
  2. [펌] 마이크로서비스, 모노리포, SRE, ... 덮어놓고 구글 따라하면 안 되는 기술들

    Date2020.10.15 CategorySystem/OS Byhooni Views1107
    Read More
  3. [ios] Xcode의 디버그 모드에서 콜스택

    Date2015.01.03 CategoryDevelop Byhooni Views1113
    Read More
  4. [mac] 패키지 매니저, MacPort

    Date2015.01.03 CategorySystem/OS Byhooni Views1129
    Read More
  5. [c] FSN 온라인 코딩 테스트 (Sorting, Binary Search)

    Date2015.06.26 CategoryDevelop Byhooni Views1131
    Read More
  6. 콘솔에서 패스워드 걸린 zip 압축하는 명령

    Date2018.03.02 CategorySystem/OS Byhooni Views1133
    Read More
  7. '2014 모바일 개발 트렌드' 발표자료입니다.

    Date2014.10.02 CategoryDevelop Byhooni Views1138
    Read More
  8. [ios] 로컬에 있는 html 실행하기

    Date2015.02.10 CategoryDevelop Byhooni Views1143
    Read More
  9. [ios] StoryBoard(xib) 없이 프로젝트 만들기

    Date2015.02.12 CategoryDevelop Byhooni Views1156
    Read More
  10. [svn] Can't convert string from native encoding to 'UTF-8' 메시지가 나오는 경우

    Date2014.12.18 CategorySystem/OS Byhooni Views1163
    Read More
  11. [ios] 상위 ViewController 가져오기

    Date2015.10.12 CategoryDevelop Byhooni Views1170
    Read More
  12. [ppt] iOS 플라랩#03(2015.04.27) 발표 자료

    Date2015.04.24 CategoryPPT Byhooni Views1171
    Read More
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 ... 98 Next
/ 98