Apple revealed its iPhone sales for the third quarter, which surpassed expectations, and it anticipates further gains, betting on artificial intelligence to attract buyers, even as its overall business in China declines. The company's shares rose nearly 1 percent in after-hours trading on Wall Street, outperforming other tech stocks that generally saw declines. Apple is expected to launch what analysts describe as "the biggest software upgrade for the iPhone" this fall. This includes artificial intelligence features and comes at a time when competitors like Samsung have been quicker to roll out similar services. Apple announced that its revenue in the fourth financial quarter will grow at a rate similar to the 4.9 percent increase recorded from April to June, which was better than analysts' expectations. Additionally, iPhone sales improved in the third quarter, decreasing by only 0.9 percent compared to a projected decline of 2.2 percent by analysts.