Stocks advance as Apple bounces