McIlroy was the center of attention for a hostile home crowd with incessant abuse and a beer even thrown at his wife.