uiview - iOS - incompatible pointer types -
i warning:
incompatible pointer types assigning 'uiimageview' 'uiview'
with code:
if ([gesturerecognizer.view iskindofclass:[uiimageview class]]) { curgraphicview = gesturerecognizer.view; }
the code work. in case, how can make don't have warning?
you have cast tell compiler sure uiimageview
if ([gesturerecognizer.view iskindofclass:[uiimageview class]]) { curgraphicview = (uiimageview *)gesturerecognizer.view; }
Comments
Post a Comment