Develop
2013.09.27 02:28
[ios] UIView에서 상위 UIViewController 가져오기
조회 수 20219 댓글 0
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; }
TAG •
-
[ios] UIView에서 상위 UIViewController 가져오기
-
[ios] UITableView 특정 Row만 Update
-
[ios] UILabel top alignㅎㅎ
-
[ios] UIColor 지정에서 RGB define ㅎㅎ
-
[ios] UIButton multi-line iOS7
-
[ios] UIAlertView 초간단 샘플 ㅎㅎ
-
[ios] UDID와 UUID (디바이스의 Unique Identifier)
-
[ios] UDID 사용 제한에 따른 대안들
-
[ios] Touch ID 적용 샘플 코드 (예제)
-
[ios] Thread Loop 내에서 UI 업데이트 방법
-
[ios] TextField 특정 문자만 사용하도록 하기
-
[ios] Swift 4 String, Date, DateFormatter 예제