The mayor of New York, Michael Bloomberg, has accepted UNC’s invitation to give the 2012 commencement speech.