Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 18 December 2016
Sometimes we require to call methodsĀ from one viewController1 to another viewcontroller2 and also get data from viewcontroller2 to viewcontroller1
for this, we need to make the link between two viewcontrollerĀ so that can communicate when another viewcontrollerĀ completes their work.
here I will show two class where the first class name “Home.swift” and all delegate methodĀ declare in “Global.swift” class .
1: first we need to define “Global.swift” class its Parent is NSObject
2: here I have defined two delegate method (write as the comment) . this method we have to define in Home.swift
3: Now I will show Home.swift class . To call , To receive message
4: Now you can use this technique in any classes .
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.