Apple's stock rose after hours on iPhone revenue that handily beat Wall Street's estimates. CEO Tim Cook talked China, AI, and the memory shortage.