Apple topped Wall Street expectations with its strongest June quarter ever, fueled by robust iPhone demand and double-digit revenue growth.