Shanghai court rejects Apple trademark dispute