diff --git a/CTAssetsPickerController/CTAssetsGridSelectedView.m b/CTAssetsPickerController/CTAssetsGridSelectedView.m index 9c984579..d3fcca1f 100644 --- a/CTAssetsPickerController/CTAssetsGridSelectedView.m +++ b/CTAssetsPickerController/CTAssetsGridSelectedView.m @@ -155,7 +155,7 @@ - (void)setShowsSelectionIndex:(BOOL)showsSelectionIndex - (void)setSelectionIndex:(NSUInteger)selectionIndex; { _selectionIndex = selectionIndex; - self.selectionIndexLabel.text = [NSString stringWithFormat:@"%lu", selectionIndex + 1]; + self.selectionIndexLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)selectionIndex + 1]; } diff --git a/CTAssetsPickerDemo/Examples/CTBasicViewController.m b/CTAssetsPickerDemo/Examples/CTBasicViewController.m index cfe994b1..d458f018 100644 --- a/CTAssetsPickerDemo/Examples/CTBasicViewController.m +++ b/CTAssetsPickerDemo/Examples/CTBasicViewController.m @@ -130,7 +130,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N PHAsset *asset = [self.assets objectAtIndex:indexPath.row]; cell.textLabel.text = [self.dateFormatter stringFromDate:asset.creationDate]; - cell.detailTextLabel.text = [NSString stringWithFormat:@"%ld X %ld", (unsigned long)asset.pixelWidth, (unsigned long)asset.pixelHeight]; + cell.detailTextLabel.text = [NSString stringWithFormat:@"%ld X %ld", (long)asset.pixelWidth, (long)asset.pixelHeight]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.clipsToBounds = YES;