You need to create Object of Appdelegate class like:-
AppDelegate *del = [[UIApplication sharedApplication]delegate];
and used this defined string in any class using del.test
. Do not forget to import your Appdelegate class in to particular class that you want to use it's string. And also @synthesize
your string in .m appdelegate
class as well.
UPDATE:-
If you wish to use Appdelegate Object in particular class then Import App-delegate in to .h file like:-
and .m class in ViewDidLoad