iPhone losing momentum; Stocks gain