How to avoid "message superview sent to freed object" iphone
Posted
by Giovanni
on Stack Overflow
See other posts from Stack Overflow
or by Giovanni
Published on 2010-03-16T14:38:51Z
Indexed on
2010/03/16
14:46 UTC
Read the original article
Hit count: 382
I have this code:
CardView *aCardView = [self prendiCartaDalMazzo];
[aCardView removeFromSuperview];
[self.mieCarte addSubview:aCardView];
when i try to add aCardView as as subview of mieCarte then i get this error:
objc[4800]: FREED(id): message superview sent to freed object=0x393f130 Program received signal: “EXC_BAD_INSTRUCTION”.
Thanks at all can help.
© Stack Overflow or respective owner