The US tech giant sold 40.4 million iPhones in its third quarter, slightly above forecasts of 40.02 million, BBC reports.
Apple chief executive Tim Cook said the results reflected "stronger customer demand... than we anticipated".
The firm said it expected sales to fall again in the fourth quarter to between $45.5bn (£34bn; €41.4bn) and $47.5bn.
Demand for Apple's flagship product has been slowing since the second quarter when the firm reported the first drop in iPhone sales since their 2007 launch.
The iPhone makes up for around two-thirds of Apple's sales and accounts for even more of its profits.
The slowdown in iPhone sales sent profit down 27% to $7.8bn in the three months to 25 June, while revenues fell 14.6% to $42.4bn.
Apple's sales in Greater China - defined by the company as China, Hong Kong and Taiwan - plunged 33%.
The firm blamed economic uncertainty and people not upgrading their phones as often for the drop.
China accounts for almost a quarter of Apple's sales, more than all of Europe combined.
"It is very clear that there are some signs of economic slowdown in China, and we will have to work through them.
"We understand China well and we remain very, very optimistic about the future there," said Apple chief financial officer Luca Maestri.