iphone - Unrecognized selector sent to UIRefreshControl -
i getting error :
terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[masterviewcontroller setrefreshcontrol:]: unrecognized selector sent instance 0x2681e0' how resolve issue because in simulator app running on device same code app not running.
i hope simulator ios6 simulator , device in tried run may have lower os version ..right? .
from uirefreshcontrol class reference,
availability : available in ios 6.0 , later.
refresh control new ios6. if want support ios5, best thing check if refresh control class exists (you can use nsclassfromstring ), , if doesn't exists either not use or use alternative.
Comments
Post a Comment