I have attached a UIGestureRecognizer to a UIView. Whose responsibility is it to release this during dealloc?
Specifically:
UITapGestureRecognizer *t =
[[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(tapHandler:)];
[self.view addGestureRecognizer:t];
[t release];
So, self.view currently has sole retention of the gestureRecognizer.
Update I should have been clearer. My question has to do with the views dealloc method. Does the view's superclass handle release of the gestureRecognizer when the view is released. I currently assume that is the case.