Skip to content

Commit

Permalink
#33 Rectify the delegate method name "shouldEnableAsset" in the sampl…
Browse files Browse the repository at this point in the history
…e app and README.md
  • Loading branch information
1and2papa committed May 21, 2014
1 parent 9f0fb17 commit d54a4e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CTAssetsPickerDemo/CTMasterViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ - (void)assetsPickerController:(CTAssetsPickerController *)picker didFinishPicki
[self.tableView reloadData];
}

- (BOOL)assetsPickerController:(CTAssetsPickerController *)picker shouldEnableAssetForSelection:(ALAsset *)asset
- (BOOL)assetsPickerController:(CTAssetsPickerController *)picker shouldEnableAsset:(ALAsset *)asset
{
// Enable video clips if they are at least 5s
if ([[asset valueForProperty:ALAssetPropertyType] isEqual:ALAssetTypeVideo])
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Limit the number of assets to be picked.

Enable only certain assets to be selected.
```` objective-c
- (BOOL)assetsPickerController:(CTAssetsPickerController *)picker shouldEnableAssetForSelection:(ALAsset *)asset
- (BOOL)assetsPickerController:(CTAssetsPickerController *)picker shouldEnableAsset:(ALAsset *)asset
{
// Enable video clips if they are at least 5s
if ([[asset valueForProperty:ALAssetPropertyType] isEqual:ALAssetTypeVideo])
Expand Down

0 comments on commit d54a4e4

Please sign in to comment.