Need same method for iOS 7
<p>I am developing an iOS application and I want all phones with iOS 7 and up to be able to use the application. When I set it to iOS 7 three methods cannot be used as they are only available on iOS 8 and newer. Does anyone know the older methods. here is the code with the error...</p>

<pre><code>let settings = UIUserNotificationSettings.init(forTypes: [.Sound, .Alert, .Badge], categories: nil) //Error: UIserNotificationSettings is only available on iOS 8 and newer 
application.registerUserNotificationSettings(settings) //Error:  registerUserNotificationSettings is only available on iOS 8 and newer 

application.registerForRemoteNotifications() //Error: registerForRemoteNotifications is only available on iOS 8 and newer 
</code></pre>