2014-06-25 1 views
1

자식 설정보기를 설정 번들 으로 표시하는 경우 가능합니까? Apple Documentation "환경 설정 및 프로그래밍 가이드"를 살펴 보았지만 네비게이션 스택에 밀어 넣는 방법에 대한 설명 만있었습니다.현재 설정 하위보기 모달

기본적으로 아래의 Facebook 설정 번들에서와 같은 팝업보기를 얻으려고합니다. 아니면 애플의 비공개 API의 일부인가?

enter image description here

+2

그것은 개인 API의 일부로 :( –

+0

애플의 설정 화면을 표시 할 계획 경우입니다, 그것은 http://stackoverflow.com/questions/5655674/opening-the-settings-의 possible.Possible 중복되지 않습니다 app-from-another-app – Krishnan

+0

내 생각에 :/어쨌든 고마워요. –

답변

0

아래의 코드를 참조하십시오. 화면 하단에서부터 화면 중간까지 애니메이션을 보여주는 아이디어를 얻을 수 있습니다.

YourViewController *viewController = [[YourViewController alloc] init]; 
    [viewController.view setFrame:CGRectMake(0, -(CGRectGetHeight(viewController.view.frame)), CGRectGetWidth(viewController.view.frame), CGRectGetHeight(self.view.frame))]; 

    [self.view addSubview:viewController.view]; 
    [UIView animateWithDuration:0.8 animations:^{ 

     [viewController.view setFrame:CGRectMake(0, 0, CGRectGetWidth(viewController.view.frame), CGRectGetHeight(viewController.view.frame))]; 

    } completion:^(BOOL finished) { 
     [self.navigationController pushViewController:viewController animated:NO]; 
    }]; 
+0

시간 내 주셔서 감사합니다. 그러나 내가 찾고 있던 것이 아닙니다. 불행히도, 내가 원한 것은 개인 API의 일부입니다. ( –

+0

@ Flyingbinary ohhhh ok. –