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

node.js - How do I prevent MongoDB replica set from querying the primary? -

c# - Randomly pick a specific int from a 2D Array -

php - Angularjs http.delete is not working after deploying project on server -