Apple has reported its first rise in sales in nine months after strong Christmas sales of the iPhone 7.
The tech giant reported net sales of $78.4bn (£62.3bn) for the last three months of 2016, up 3% on last year, and marking its strongest quarter ever.
However, the firm warned some customers were holding back on phone upgrades in anticipation of the 10th anniversary iPhone later this year, suggesting the strong performance may not continue.
The release is expected in September.
Prior to this quarter, the firm had suffered three quarters in a row of falling revenue as mounting competition, particularly from Chinese rivals, hit sales of its flagship iPhone.
The slowdown in iPhone sales – which account for two thirds of income – led to Apple reporting a drop in annual revenue in October, the first such fall in 15 years.
Investors appeared to be relieved by the apparent turnaround, with the firm’s shares rising 3% in after-hours trading.
Chief executive Tim Cook said Apple had sold “more iPhones than ever before”, with the quarter also setting new records for revenues from its Mac, Apple Watch and services divisions, he said.
“We’re thrilled to report that our holiday quarter results generated Apple’s highest quarterly revenue ever, and broke multiple records along the way,” Mr Cook said.
Mr Cook said demand was particularly high for the larger iPhone 7 Plus during the quarter.
The iPhone 7 models – which were released in September and included an improved camera but ditched the traditional headphone socket – now account for about 17% of Apple’s phone sales, according to research firm Localytics.
Apple said it had sold 78.3m iPhones in the three months to 31 December, up from 74.8m a year before.
It reported revenue of $54.3bn from iPhone sales, along with $7.2bn from the Mac, $5.5bn from the iPad and $4.0bn from other products, including the Apple Watch.
Revenues from its services division – including the App Store, Apple Music and iCloud – were $7.1bn. The segment is now close to overtaking the Mac as Apple’s second biggest source of revenue.
“Services obviously continues to be a real success story for them,” said Jackdaw Research analyst Jan Dawson. “It’s one of the fastest-growing segments they have, driven largely by the App Store.”
Analysts expect growth in services to help offset declining hardware sales as the smartphone market matures.