Seems like the server
property of AdSettingsTVC
is private because you have defined it in your .m
file in a category AdSettingsTVC()
. Therefore, any other file cannot access it.
Try exposing it in your .h
file as
@interface AdSettingsTVC:UIViewController
@property (strong, nonatomic) NSString *server;
Also, notice the strong
property