ギャラリーから画像を選択する前に解析した画像を保存しているために起こっています。だから、図書館から画像を選んでから行ってください。
func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage, editingInfo: [String : AnyObject]?) {
self.dismissViewControllerAnimated(true, completion: nil)
profileImage.image = image
var queryU = PFQuery(className:"ProfilePhoto")
queryU.getObjectInBackgroundWithId(self.objectIds[0]) {
(Pp: PFObject?, error: NSError?) -> Void in
if error != nil {
print(error)
} else if let Pp = Pp {
let imageData = UIImagePNGRepresentation(self.profileImage.image!)
let imageFile = PFFile(name: "pImage.png",data: imageData!)
wait(w_status: 1000)
Pp["profilePhoto"] = imageFile
Pp.saveInBackground()
}
}
}
Happy Programming dude :) –