iPhoto automatically opens up when connecting your iPhone og iPad. The issue is that it’s not iPhoto itself but “Image Capture” that opens it up.
Open Image Capture. Locate devices and click on button in the bottom left, icon with an arrow inside a box. Select “Connecting this iPhone opens: ” select No application.