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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -