views:

407

answers:

0

I have an object that is a child of UIImageView. Before all these touches methods, I add this object to the superview and then user moves it. In touchesEnded, sometimes I want to release self. I've tried:

- [self release]

or

- [self removeFromSuperview]

But all these tries end up in exceptions. What's the right way to release self?