I am trying to set the title of a button of viewcontroller2 from viewcontroller1, howevever this is the error I am getting:
How do I fix this?
I am trying to set the title of a button of viewcontroller2 from viewcontroller1, howevever this is the error I am getting:
How do I fix this?
The reason is before initialising class values you can't get them it will be return nil.
Solution: