Smartphone revenue falls at its steepest-ever rate, but the technology giant is upbeat on the future.