Creating a master-detail iOS application