Monday, 26 August 2013

iOS: why can't you have objects in structs?

iOS: why can't you have objects in structs?

I was wondering why you cannot have objects in structs when using ARC.
Whenever I do, I get the error "ARC forbids objective-c objects in
structs". I saw many answers that discuss solutions, but none discuss the
underlying reason why it doesn't work in the first place.

No comments:

Post a Comment