I hereby claim:
- I am markdarling on github.
- I am markdarling (https://keybase.io/markdarling) on keybase.
- I have a public key ASABZKjolTCGEbz7GgBFRqCRfKiQvyYa67P4aYp280iNGQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Exclude the build directory | |
build/* | |
# Exclude temp nibs and swap files | |
*~.nib | |
*.swp | |
# Exclude OS X folder attributes | |
.DS_Store | |
- (void)getLatestPhoto { | |
ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; | |
[library enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:^(ALAssetsGroup *group, BOOL *stop) { | |
[group setAssetsFilter:[ALAssetsFilter allPhotos]]; | |
[group enumerateAssetsAtIndexes:[NSIndexSet indexSetWithIndex:[group numberOfAssets]-1] options:0 usingBlock:^(ALAsset *alAsset, NSUInteger index, BOOL *innerStop) { | |
if (alAsset) { | |
ALAssetRepresentation *representation = [alAsset defaultRepresentation]; |