In the end what matters in business is sustainable profit not marketshare. Of course if you include all of Apple's devices they have both. When I worked at Apple in the mid-90's they had neither and I gave up on them shortly before Steve came back. Aw, crap.
With network effects and other market effects, sacrificing profit for marketshare for years/decades might be the longer/smarter play. For example, Amazon is happy to undercut their competition and lose money for years. Is that a bad decision? Remains to be seen, but if they'd focused on sustainable profit, I suspect they'd have a lot more competitors.
Walmart jumps into a new small-town and buries their competition with non-stop deep discounts. Competition closes, Walmart now has tremendous power to price however they want.
I think Apple's appetite for profit is awesome, but it leaves less room for their "partners" (carriers), which means every other player in the marketplace has incentives to push Android/etc. Result: http://www.statista.com/chart/1099/smartphone-operating-syst...
And from the existential side of things... Would you REALLY rather have the 40% margin business that owns 5% of the market or would you rather have the 1% margin business than owns 95%? Either way, you're a gazillionaire. I'd personally rather impact more lives.