Apple iPhone sales rose in those markets where the company rolled out artificial intelligence features. The news was positive for Apple stock.