**Editor's Note: Click here for our look back at how some of the biggest names in telecommunications performed financially in Q1 2013 or here for our list of June's hottest selling smartphones to see how the iPhone fared against the competition.**
The iPhone might be taking a beating in the face of competition from Samsung and other manufacturers that have released oodles of new phones in the past 10 months, but that didn't keep Apple from reporting better-than-expected sales of its iconic device in the second quarter.
Apple's profit from April through June was just shy of $7 billion, spectacular for most companies, but a drop from $8.8 billion in the year-ago quarter for the iPhone and iPad maker. Revenue was up slightly, to $35.3 billion. Analysts had been predicting $35 billion, MarketWatch reported, so that's feather in Apple's cap.
The number of iPhone shipments (31.2 million) was also higher than what industry insiders were expecting – nearly 20 percent more, in fact. iPad shipments, on the other hand, were just 14.6 million, when analysts were anticipating 17-18 million.
The company shipped 31.2 million iPhones in the quarter; analysts had predicted a range of 26 million to 27 million iPhones shipped, on average.
Apple's third-quarter numbers will likely depend on whether its next-generation iPhone, which most pundits are calling the iPhone 5S, debuts early enough to have an impact. The most recent predictions are that it won't hit store shelves until the very end of September, if not early October.
Follow senior online managing editor @Craig_Galbraith on Twitter.