import UIKit
import Foundation
open class podview: UIView {
open var strk = UIColor.black
.
.
}
I have to change the value of "strk" from another view controller. Is it possible to do it.
import UIKit
import Foundation
open class podview: UIView {
open var strk = UIColor.black
.
.
}
I have to change the value of "strk" from another view controller. Is it possible to do it.
I'm just providing you trick.
Yes you can change it. First you need to import
model of the pod.
then you need to create object of the podview
and then you will be able to access strk
like
objectOfPodView.strk
YES, You can do it. There are two way to do this.
NSNotificationCenter addObserver in Swift
Examples of Delegates in Swift
For EX ViewcontrollerB.yourVariable = Assign value - From View Controller A
Please review and understand both concepts.
Happy Coding..:)