Apple's profits fell for a second consecutive quarter, even as the company enjoyed record iPhone sales for the April-to-June time period.

For its fiscal third quarter ended June 29, Apple reported sales of $35.3 billion, with net profit at $6.9 billion. That translated to earnings of $7.47 per diluted share. Apple's revenue marked a record for the June quarter, ticking up 1 percent from the $35 billion Apple posted in last year's third quarter. Still, profits fell 22 percent year-over-year, down from $8.88 billion in 2012. Apple also reported a drop in profit during its fiscal second quarter of 2013.

Apple's performance for the third quarter topped analyst expectations. Analysts were looking for the company to earn $7.32 a share on $35 billion in revenue.

With a tiny increase in revenue but a drop in profit, you'd rightly conclude that Apple's gross margin dropped: For the quarter, it was 36.9 percent, versus 42.8 percent on the year-ago quarter. That's because Apple's most popular products now have lower margins than the top-sellers a year ago.

Apple says international sales accounted for 57 percent of its revenue for the quarter.

The company also says it has issued $18.8 billion in cash to shareholders through dividends and buybacks.

While Apple generally keeps a tight lid on future product announcement, company officials did reiterate a point made during its second-quarter earnings announcement in April--that the company plans to roll out new products starting this fall and into the next year. "We are laser-focused and working hard on some amazing new products," CEO Tim Cook said in an statement accompanying Apple's earnings announcement."

iPhone stays strong

Apple says it sold 32.2 million iPhones--a record for the June quarter. That's up from 26 million iPhones in the year-ago period. For the U.S., iPhone sales rose 51 percent year-over-year, Apple says.

"iPhone 5 remains by far the most popular [phone], but we're also very happy with sales of iPhone 4 and 4S," chief financial officer Peter Oppenheimer told analysts during a Tuesday conference call. Those older phones, of course, are lower-margin devices, since Apple charges customers $200 or $100 less for those phones, respectively, compared to the iPhone 5.

Oppenheimer said that iPhone sales remain ahead of expectations, and that Apple is particularly pleased with the iPhone's strong year-over-year growth in both developed and emerging markets. Apple says that ComScore shows the iPhone holds the top spot in the U.S. market for the three month period ending in May, with a 39 percent share. And the iPhone is the top-selling smartphone in Japan, and the top or second-best selling smartphone in most markets IDC tracks.

With government, business, and education, iPhone holds a 62.5 percent share of the U.S. commercial market.

Cook suggested that Apple is at least open to the notion of trade-ins for smartphones. "I like the environmental aspect of it," he said, though he stressed that Apple hasn't announced any plans on that front. Cook pointed out that "residual value of iPhone stays high, and there's so much demand around it. So that makes the trade-in program very lucrative."

iPad declines

The picture was less rosy for iPad sales, but Apple has a perfectly reasonable explanation for the 14 percent drop in tablet sales from last year's third quarter. A year ago, Apple introduced the third-generation iPad and enjoyed a full quarter's worth of sales to the tune of 17 million units. This quarter, sales fell to 14.6 million iPads.

Still, Apple has plenty of reason to remain bullish on the iPad. Oppenheimer said that the iPad ranked tops in a 2013 U.S. tablet satisfaction survey by JD Power and Associates. And during the quarter, the company inked a deal with the Los Angeles Unified School District, the second largest district in the U.S., to roll out iPads to 640,000 students.

In fact, the iPad got the bulk of the credit for a strong quarter of sales to U.S. schools. According to Oppenheimer, the last three months generated the highest quarterly revenue ever for Apple's U.S. education institution business.

The Mac beats the market

Mac sales also fell in the quarter, down 7 percent from last year to 3.8 million units. Still, Oppenheimer pointed out that the 3.8 million Macs sold beat Apple's own expectations. And Apple's sales still were ahead of the total PC market, which saw sales contract by 11 percent according to estimates from research firm IDC (which is owned by the same company that owns Macworld). By Apple's math, the Mac gained market share during the quarter.

The Mac was one of the few product lines to see any changes during the quarter, with Apple updating its MacBook Air lineup at the beginning of June by adding new Intel processors. Company executives had little to say about any impact those new laptops had on overall Mac sales, but Oppenheimer did call it the most successful MacBook Air launch to date, adding that customer response was great.

But during the call, executives implied that there were better things to come. Oppenheimer noted that June's Worldwide Developers Conference included previews of both the Mac Pro and the next version of OS X, code-named Mavericks.

The sweet sound of retail success

The iTunes Stores--which includes the App Store, Mac App Store, iBookstore, and the music, movies, and TV sections of iTunes--generated $4.3 billion in billings, Oppenheimer said, culminating in the best week and best month ever for App Store. That translated to quarterly revenue of $2.4 billion, up 29 percent year over year. Total quarterly revenue from iTunes, software, and services generated $4 billion in revenue.

Oppenheimer said that Apple now has over 320 million iCloud accounts, and 240 million Game Center accounts.

As for brick-and-mortar retail efforts, the Apple Store saw revenue of $4.1 billion for the quarter, virtually unchanged from the year-ago quarter. Oppenheimer reported that Apple saw 16,000 visitors per store each week.

For the quarter, Apple had an average of 405 stores, with average revenue per store at $10.1 million--down $1 million from the year-ago quarter. Apple opened six stores across five countries during the quarter, giving it 408 stores around the globe; 156 of those outlets are outside the U.S.

The company plans to open nine new stores during the September quarter, giving it 27 new openings during the 2013 fiscal year. It's not just about new stores, however: Apple says that it relocated four of its stores to more appealing spots; it will complete 23 such relocations before the end 2013 fiscal year in September.

Eye on China

China has been a particularly critical part of Apple's business in recent years, but that took a hit in the third quarter. "China was weaker" in this quarter, Cook acknowledged, but maybe not as weak as it might seem at first blush, he argued. "Our sell-through in China was only down four percent from the year-ago quarter, when you normalize for channel inventory," he said. Hong Kong drop was worse, though mainland China was up five percent year over year, "but that's a lower growth rate than we have been seeing," Cook added.

"I attribute that to many things, including [the fact that] the economy there clearly doesn't help us there or others," Cook said.

Still, China drove $4.9 billion of revenue--about 14 percent of the company's earnings--Cook pointed out. "And a few years ago, that was within the hundreds of millions. We have a very strong market there." He added that year-to-date, iPad sales are up 48 percent in China year over year, and half a million developers in China are working on iOS apps. He also said that Apple would double its number of retail stores in China "over the next couple years."

Cook said that Apple will continue to work to boost iPhone and iPad sales, "both of which are currently lower then where we would like or need them to be. We're doing that very cautiously, because we want to do it with quality." He added that, "over the arc of time, China is a huge opportunity for Apple, so don't get discouraged over the 90-day cycle with economic factors."

Paying dividends

Apple's not done returning cash to investors. The company's Board of Directors has announced another cash dividend, this one at $3.05 per share of common stock, payable on August 15 to any shareholder as of August 12.

Fourth-quarter guidance

For the next quarter, Apple is predicting revenue between $34 billion and $37 billion, with gross margins between 36 and 37 percent. That sales figure would put Apple's performance in line with the $36 billion in revenue it reported in the fourth quarter of 2012. For the coming quarter, Apple also predicts operating expenses will be between $3.9 billion and $3.95 billion, with a tax rate of 26.5 percent.

That may dissatisfy some sections of Wall Street, where the focus is on growth and new products, but Apple's Cook told analysts on Tuesday that he doesn't think the company's goals diverge from investors' focus on profits.

"We're here to make great products, and we think that if we focus on that and do that really well, the financial metrics will follow," Cook said. "We don't look at those two things as mutually exclusive."