Skip to content

Commit

Permalink
Merge pull request #90 from indiche/remove-ios8-deprication-warrnings
Browse files Browse the repository at this point in the history
Remove deprication warrnings for iOS 8
  • Loading branch information
1and2papa committed Feb 27, 2015
2 parents 4c618fa + 2ebd5d5 commit b2fbed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CTAssetsPickerController/CTAssetsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ @implementation CTAssetsViewController

- (id)init
{
UICollectionViewFlowLayout *layout = [self collectionViewFlowLayoutOfOrientation:self.interfaceOrientation];
UIInterfaceOrientation interfaceOrientation = [[UIApplication sharedApplication] statusBarOrientation];
UICollectionViewFlowLayout *layout = [self collectionViewFlowLayoutOfOrientation:interfaceOrientation];

if (self = [super initWithCollectionViewLayout:layout])
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ - (NSDateComponents *)dateComponetsWithTimeInterval:(NSTimeInterval)timeInterval
NSDate *date2 = [[NSDate alloc] initWithTimeInterval:timeInterval sinceDate:date1];

unsigned int unitFlags =
NSSecondCalendarUnit | NSMinuteCalendarUnit | NSHourCalendarUnit |
NSDayCalendarUnit | NSMonthCalendarUnit | NSYearCalendarUnit;
NSCalendarUnitSecond | NSCalendarUnitMinute | NSCalendarUnitHour |
NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYear;

return [calendar components:unitFlags
fromDate:date1
Expand Down

0 comments on commit b2fbed3

Please sign in to comment.