in ios 6, how add pinchgesture detect once?
i have uiview add pinchgesture:
[self addpinchgesturerecognizerstoview:self.view];
then attach function pinch call out uiview. problem when pinch, event occur few times, make viewcontroller addsubview many times depend on how many times event occur.
so how can limit 1 time or remove @ moment detect pinch. tried:
[self.view removegesturerecognizer:uipinchgesturerecognizer];
but got compile error.
thanks suggestions. thought of simplest solution - add boolean check. rest work charm.
Comments
Post a Comment