いまや当たり前過ぎて、日常生活から切っても切れないSNS。 カメラアプリは特に写真を投稿する一手段となる為、SNSの連携は外せません。 でも、なんか難しそうですよね。私も最初そう思っていました。 しかし、いざやってみると、簡単なんですよね。 今回はそのSNSへの連携や保存を行う、UIActivityViewControllerの実装方法ご紹介します。 UIActivityViewControllerで簡単保存&連携 UIActivityViewControllerでの基本的な実装方法は次のような形になります。 //保存したいイメージ UIImage *saveImage = camera_image; // UIActivityViewController UIActivityViewController *activityView = [[UIActivityViewController