The worst of Apple’s iPhone problems are over, UBS says (AAPL)