Am 27.11.2008 um 03:49 schrieb DKJ:
I've got something this in my code, which is run several times by
the app:
UIView *subView = [[MyView alloc] initWithFrame:frame];
[theView addSubview:subView];
[subView release];
Later on this happens:
[subView removeFrom
On Nov 26, 2008, at 6:49 PM, DKJ wrote:
I've got something this in my code, which is run several times by
the app:
UIView *subView = [[MyView alloc] initWithFrame:frame];
[theView addSubview:subView];
[subView release];
Later on this happens:
[subView removeFr
Are you sure your dealloc is not being called? Are you sure your dealloc has
the correct method signature? Because the "I got an EXC_BAD_ACCESS as well"
thing sure sounds like your view is being deallocated.
--
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice
__
hmm - I do believe this works for me, I have views being destroyed in my
app and they are going away.
Have you tried something a bit gross and disgusting which is getting the
current refcount before and after the removeFromSuperView? I know that
you cannot use the absolute value of your refcou
I've got something this in my code, which is run several times by the
app:
UIView *subView = [[MyView alloc] initWithFrame:frame];
[theView addSubview:subView];
[subView release];
Later on this happens:
[subView removeFromSuperView];
subView = nil;
The