I want to know how to access an @IBOutlet declared in a class from another class
for example, I have a class named myfirstview
class MyFirstView: UIV
Problem is here :
var lblred : UILabel! = UILabel()
You creating a new label here. That breaking your IBOutlet connection. You only need
@IBOutlet var lblred : UILabel!