質問

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 ?

役に立ちましたか?

解決

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

response = @"test";

Instead, always do:

self.response = @"test";
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top