registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

http://stackoverflow.com/a/24773465