Apple earnings smashed forecasts with iPhone sales hitting a March-quarter record.