Notation 1:
-(void) Prepareforsegue: (Uistoryboardsegue *) Segue sender: (ID) sender { // Get The new view controller using [Segue Destinationviewcontroller]. // Pass the selected object to the new view controller. if ([Segue.identifier isequaltostring:@ "projectdetailssegue"]) { * Detailsvc = Segue.destinationviewcontroller; = sender; }
Notation 2:
-(void ) Prepareforsegue: (Uistoryboardsegue *) Segue Sender: (id // Get The new view controller using [Segue Destinationviewcontroller]. // Pass the selected object to the new view Controller. if ([[Segue Destinationviewcontroller] iskindofclass:[ezwificonfigviewcontroller class *) [Segue Destinationviewcontroller] ). SSID = Self.nameTextField.text; ((Ezwificonfigviewcontroller *) [Segue Destinationviewcontroller]). Password = Self.passwordTextField.text; }}
iOS-(void) Prepareforsegue: (Uistoryboardsegue *) Segue Sender: (ID) Sender's wording