Apple shares rise after positive sales outlook signals iPhone recovery