ios - How to use extern NSString for move the string value from first view to second View Controller -


i use extern nsstring moving string value first view controller second view controller.

is there example show how use extern nsstring pass data between 2 view controllers.

thank you.

try this:

in first view controller :

extern nsstring *str; 

then define in @interface

@interface{ nsstring *str; } 

then assign value per requirement in @implementation

and can use str variable in second view controller


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -