Contents

조회 수 20147 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

UIView에서 상위에 있는 UIViewController 찾아오기


// 상위 뷰 중에 원하는 뷰컨트롤러 얻어오는 거임.
- (UIViewController*)getHomeViewController {
    for (UIView* next = [self.view superview]; next; next = next.superview) {
        UIResponder* nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[HoppinHomeViewController class]]) {
            return (UIViewController*)nextResponder;
        }
    }
    return nil;
}


?

  1. [link] 유용한 사이트 링크.

    Date2013.08.19 CategoryEtc Byhooni Views71446
    Read More
  2. [ios] 앱에서 다른 앱 실행시키기

    Date2013.09.05 CategoryDevelop Byhooni Views18524
    Read More
  3. [ios] None IB vs. StoryBoard 샘플 소스

    Date2013.09.06 CategoryDevelop Byhooni Views16920
    Read More
  4. [python] 애니팡, 캔디팡 매크로

    Date2013.09.06 CategoryDevelop Byhooni Views17300
    Read More
  5. [ios] Hybrid 앱 스터디 발표 자료

    Date2013.09.06 CategoryDevelop Byhooni Views13701
    Read More
  6. 영어. 외우면 도움되는 필수영어회화 표현

    Date2013.09.09 CategoryEtc Byhooni Views20931
    Read More
  7. [ios] 간단한 방법으로 OS버전 확인하기.

    Date2013.09.24 CategoryDevelop Byhooni Views13302
    Read More
  8. [mac] SVN 1.8 업데이트 방법

    Date2013.09.24 CategorySystem/OS Byhooni Views14557
    Read More
  9. [svn] 콘솔에서 svn 사용시 레티나용 이미지 add 안될 때..

    Date2013.09.25 CategoryEtc Byhooni Views37485
    Read More
  10. [ios] UIView에서 상위 UIViewController 가져오기

    Date2013.09.27 CategoryDevelop Byhooni Views20147
    Read More
  11. [ios] GCD 변수 사용 예제

    Date2013.10.01 CategoryDevelop Byhooni Views12106
    Read More
  12. [linux] 우분투 APM + phpmyadmin 설치

    Date2013.10.07 CategorySystem/OS Byhooni Views49317
    Read More
Board Pagination Prev 1 ... 61 62 63 64 65 66 67 68 69 70 ... 98 Next
/ 98