How was apple iPhone invented?

The iPhone is not really "an invention" - it is a developement of several already-existing inventions, building on the knowledge of mobile phones, MP4 players and computers.