Skip to content

Commit

Permalink
Addressed Deprecated Warning
Browse files Browse the repository at this point in the history
Removed deprecated NSGregorianCalendar and replaced it with NSCalendarIdentifierGregorian
  • Loading branch information
AdamBCo committed Jan 29, 2015
1 parent b5d7862 commit e44ac75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion THCalendarDatePicker/THDatePickerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
_calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
_calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
_allowClearDate = NO;
_allowSelectionOfSelectedDate = NO;
_clearAsToday = NO;
Expand Down

0 comments on commit e44ac75

Please sign in to comment.