It wasn't a disaster, no. But then the problem is the lack of new products. This is the longest dry spell we've seen from Apple in some time.
Surprised? Expects?
Expect? The markets have been expecting lower margins and profits, which is why the stock price has been driven down. Wall Street doesn't give two figs about market share. What investors care about is growth in earnings. A margins squeeze results in reduced earnings and also suggests the real possibility of lower profits going forward due to increased competition. A pretty basic concept, and not at all controversial, or so I would have thought.
Apple's success in growing earnings over the last ten years has been based on the regular release of breakout products, not on new iterations of old products. If you are an AAPL investor, I suggest you hope for another one of those, a product where Apple's margins are not already squeezed. If you are investing for more than entertainment value, anyway.