반응형

Xcode 8.3.3 기준으로 작성


간단하게 indicator만 라이브러리에 추가 한 후 사용하는 방법으로 설명


1. 라이브러리 프로젝트 생성




2. 스토리보드에 UIViewController 추가

  - 스토리보드 이름에 유의 (프로젝트 명과 동일하게 만듬)







3. 번들 타겟 추가 및 수정








4. 번들에 리소스 추가




5. 번들에 있는 스토리보드 사용

UIStoryboard *sb = [UIStoryboard storyboardWithName:@"testLib" bundle:[NSBundle bundleWithPath:[[NSBundle mainBundle]             pathForResource:@"testLibBundle" ofType:@"bundle"]]];

[self.view addSubView:((UIViewController *)[sb instantiateViewControllerWithIdentifier:@"IndicatorVC"]).view];



+ Recent posts