投稿

11月, 2012の投稿を表示しています

iOS6 deprecated

iOS6より画面切り替え系のメソッドでdeprecatedになったものがあります。 - (void)dismissModalViewControllerAnimated:(BOOL)animated - (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated です。以下のものに置き換えます。 - (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion - (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^)(void))completion