When was the iPhone invented and by who?

The iPhone was released to the public in 2007 and it was created by Apple.