0

I have an object of class A which has a property of NSString. I am setting this property with a Base64 encoded String. Once I set another property, the first property changes to nil

How can that be?

Here is my code: A.h

@property (nonatomic, retain) NSString* b64ImageData;

Here I am setting it:

[imageInfo setB64ImageData:string64encoded];
[imageInfo setName:last];

Note that the imageInfo class resides in a library using Manual Reference Counting, while the code resides in a project with Automatic Reference Counting.

See screenshot of debugger before setting other property: screenshot of debugger before setting other property

See screenshot after setting other property: screenshot after setting other property

Any help appreciated, thanks!

mrd
  • 4,561
  • 10
  • 54
  • 92

0 Answers0