Since the last Yosemite update, the new Photos app will open automatically when you hook up your iPhone or iPad.
To stop this from happening, open Image Capture (available in your Applications folder), connect your iOS device, select it in the upper left, and in the lower right corner, click the arrow up. Then change the dropdown to not do anything.