Simplest way to prevent iTunes from automatically launching when iPhone/iPad is connected
The simplest way is to un-tick the Automatically sync this... box* on the Summary Screen for the device in iTunes when the device is connected:




This is per device.


Alternatively you can just remove the iTunesHelper service under your Login Items which will disable it irrelevant of the tick box state.