I would like to set this up: ** UINavigationController ** ** Core Data ** - RootView (Table of Courses-of-Study) - [CourseOfStudy entity] -- didSelectRowAtIndexPath --> DetailView -- [StudyMaterial entity](list of Qs) -- DetailView consists of: --- TextView (on top) --- [Question entity] --- TableView (on bottom, subview of DetailView) --- [Answers entity, Distractors entity] How do relate my courses of study directly with their respective/detail-view/child data? Thanks
I would like to set this up: ** UINavigationController ** ** Core Data **
Share
Each row in the Master/Root tableview will represent a particular
CourseOfStudyobject. When the user selects that row, you will know whichCourseOfStudyobject is needed. Create an attribute in DetailView controller to hold aCourseOfStudyobject. Before you push the DetailView controller onto the NavigationController’s stack, set the attribute to the selectedCourseOfStudyobject.…and you’re done. The DetailView controller now has the correct
CourseOfStudyobject and can display it’s properties.