Removing deprecated API used by iOS 4.