Storyboard, UISPlitViewController 및 여러 상세보기 사용 (스토리 보드가있는 MultipleDetailViews)

StackOverflow https://stackoverflow.com/questions/9520551

  •  15-11-2019
  •  | 
  •  

문제

모두,

이것은 없습니다. 과학 - UisplitviewController의 모험 ...에 그것은 마스터의 셀이 아닌 uitabbarcontroller에서 실제로 이동합니다.

SplitViewController를 만들고 싶습니다. 왼쪽에서는 동일한 목록에 다른 유형의 셀을 가지고 있습니다 (Apple Iok이 아니라면 Apple Iok 인 경우 상관 없어). 서로 다른 세포 뷰 컨트롤러를 갖고 싶습니다. 셀 유형 A 쇼 DetailView A, 셀 유형 B는 DetailView B를 보여줍니다.

  1. SplitViewController Subviews를 어떻게 업데이트하여 자세한 내용을 이동합니까?
  2. 탐색 컨트롤러를 세부 사항으로두고 ViewControllers를 추가 할 수 있습니까? Seque Name을 기반으로 받아들이거나 스토리 보드에서 볼을 얻을 수 있습니까?
  3. 내가 방금 누락 된 정말로 분명한 방식입니다.

    보너스 포인트의 경우, 내가 다른 세부 뷰 (저장을 위해)를 남기고 다른 세부 뷰 (다른 셀 유형 버튼을 눌렀습니다)

도움이 되었습니까?

해결책

It turns out it was simple.

If you do the obvious (who would have thought?) it works just fine. I created my different cellviews. Each cell view has details link that I just linked to a series of view controllers. I just had to change the seque so that it was a replace and it put the view into the detail view.

다른 팁

I'm make this sample in GitHub

https://github.com/AlfonsoMoreno/MultipleDetailView

MasterViewController is UITableViewController

FirstDetailViewController is UIViewController SecondDetailViewController is UITableViewController

You can add more views!!!

Please watch MultipleDetailViewManager class!!!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top