Add template XCode master-detail code.