convert to ARC and new XCode syntax. support UIAppearance