The iPhone 4 is a smartphone owned by Apple .
The iPhone 4 spent the longest time as Apple 's flagship iPhone model at fifteen months , and had the longest lifespan of any iPhone ever produced , spanning close to four years and available in some developing countries until early 2015 .