I had this problem all morning. I restarted my iPhone, computer, reset my pass codes then turned them off, etc. My iPhoto still kept popping up with a message saying my iPhone was locked with a passcode.
Finally, I opened up iTunes and a pop up came up asking me if I wanted to access...