3월, 2015의 게시물 표시

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]; 위의 구문을 넣어주면 된다.

instantiateViewControllerWithIdentifier 에러 수정하기

이미지
/Users/softviewdidload/Desktop/ShiftWork/ShiftWork/Base.lproj/Main.storyboard: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:. 아이폰 뷰를 설정하는데 위와 같은 에러가 난다. 결론은  스토리보드 아이디를 설정하면 된다.