bendodson / MonthYearWheelPicker

A UIPickerView subclass that allows you to quickly add a picker for just month and year; in most cases it can be used as a drop-in replacement for UIDatePicker.
https://bendodson.com
The Unlicense
183 stars 42 forks source link

Some Issues in Swift 2.0 #2

Closed cancem123 closed 8 years ago

cancem123 commented 8 years ago

There are some issues in Swift 2.0 could you fix it?

selectRow(find(years, year)!, inComponent: 1, animated: false) // find is unavailable

var year = NSCalendar(identifier: NSCalendarIdentifierGregorian)!.component(.CalendarUnitYear, fromDate: NSDate()) //type of expression is ambiguous without more context

var month = NSCalendar(identifier: NSCalendarIdentifierGregorian)!.component(.CalendarUnitMonth, fromDate: NSDate()) //type of expression is ambiguous without more context
bendodson commented 8 years ago

Fixed in 21146955de3920c8630bd6ad33bb790b6445c9f3 (There is also a "Swift-2.0" tag and I've added Storyboard / Xib compatibility)