ios - 'dismissModalViewControllerAnimated:' is deprecated -


this question has answer here:

i know question has been asked, how fix problem referring line.

 -(void) achievementviewcontrollerdidfinish:(gkachievementviewcontroller *)viewcontroller {     appcontroller *app = (appcontroller*) [[uiapplication sharedapplication] delegate];     [[app navcontroller] dismissmodalviewcontrolleranimated:yes]; } 

referring [[app navcontroller] dismissmodalviewcontrolleranimated:yes]; 'dismissmodalviewcontrolleranimated:' deprecated in ios 6.0.

if press alt while clicking on method in xcode, can see more information method, including availability. in availability section, suggest method use if current method deprecated. dismissmodalviewcontrolleranimated:, suggestion use dismissviewcontrolleranimated:completion:. can replace latter completion param nil.

enter image description here


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -