ios - How to add multiple Detail View Controllers in Master-Detail application -
i trying build ipad master-detail app. master view tableviewcontroller
. want change complete detail view every different cell user taps in master view. 1 of detail view controllers has allow user type data, other view something, etc. how can add more detailviewcontrollers master-detail app?
you should use replace segues purpose. connect many view controllers want directly master controller (not cells) replace segues, , give them identifiers. in didselectrowatindexpath:, implement whatever logic need relate index path controller want segue to, , call performseguewithidentifier:sender: initiate segue. if need pass data on next controller, can in prepareforsegue.
Comments
Post a Comment