Mako Shan

Mako 是一名密码朋克爱好者
这里是我记录生活和成长的地方

联系我的微信号
👏欢迎一起交流学习

UIActivityViewController callback

//保存图片
    func savePhoto(){
        itemsToShare=[AnyObject]()
        let imageData=UIImagePNGRepresentation(self.phoneImageView.image!)
        self.itemsToShare.append(UIImage(data: imageData!)!)
        let activityViewController = UIActivityViewController(activityItems: itemsToShare, applicationActivities: nil)
        let completionItems: UIActivityViewControllerCompletionWithItemsHandler = { (activityType: String?, completed: Bool, returnedItems: [AnyObject]?, activityError: NSError?) -> Void in
            if completed == true {
            self.navigationController?.navigationBar.backgroundColor=UIColor.redColor()
                self.dismissViewControllerAnimated(true, completion: nil)
            }
        }
        activityViewController.completionWithItemsHandler=completionItems
        presentViewController(activityViewController, animated: false, completion: nil)
     }
 ```
0
iOS修改字间距
目录