Apple hangs on as consumer spending dips