Dollar dips after recent gains; U.S. stocks advance with Apple