Question

I have @property:

@property(strong, nonatomic, readwrite) NSString *response;

In ViewDidLoad I add some value:

response = @"test";

In another function prepareForSegue I try to send value of this variable to next view but value is disappear and I see

(NSString *) response = 0x000000010a8a9e00

in response value but must be "test", and same problem with some other variables. What is this ?

Was it helpful?

Solution

Avoid doing this whenever possible as it can cause bugs like the one you're having:

response = @"test";

Instead, always do:

self.response = @"test";
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top