Despite recent criticism about its product outlook, the company reported strong sales of iPhones, Macs, iPads and services.