I needed to add one year to the current date (swift & iOS 7 and above). But every solutions i have found is only support iOS 8 and above. Please guide me through proper solution. Thanks
let components: NSDateComponents = NSDateComponents()
components.setValue(1, forComponent: NSCalendarUnit.Year);
let date: NSDate = NSDate()
let expirationDate = NSCalendar.currentCalendar().dateByAddingComponents(components, toDate: date, options: NSCalendarOptions(rawValue: 0))