Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- UIView
- loop
- 앱스토어
- swift
- 샘플
- 페이백
- setting
- error
- simulator
- Bitcode
- UITableView
- 신도림 테크노마트
- 공략
- swift3
- Example
- 보라카이
- 포켓몬 GO
- 포켓볼
- 해몽
- IOS
- 아이폰7
- afterdelay
- Check
- 신도림
- LG유플러스
- push
- GCD
- 얻는법
- 스마트폰
- Xcode
Archives
- Today
- Total
도래울
whose view is not in the window hierarchy 오류 대처 방법 본문
whose view is not in the window hierarchy
오류가 난다.
EkEventEditViewController 가 ViewController 위에 생성이 되었다고 하면서 나는 오류이다.
혹시나 해서 ViewController 를 NavigationViewController 로 변경해도 마찬가지이다.
UIViewController *topController = [UIApplication sharedApplication].keyWindow.rootViewController;
while (topController.presentedViewController) {
topController = topController.presentedViewController;
}
[topController presentViewController:addEventVC animated:YES completion:nil];
위의 구문을 넣어주면 된다.
'개발 > iOS' 카테고리의 다른 글
| Swift 훑어보기 (0) | 2016.02.29 |
|---|---|
| Swift 프로젝트에서 Objective-C 코드를 함께 사용하기 (0) | 2016.02.23 |
| 코드를 보기좋게 재정렬 해주는 Xcode 플러그인 - XAlign (2) | 2016.02.17 |
| [Xcode]Xcode 플러그인 VVDocumenter-Xcode 소개 (2) | 2016.02.17 |
| 애플 리젝 사유 (1) | 2016.02.05 |
Comments