donobono / doimagepickercontroller Goto Github PK
View Code? Open in Web Editor NEWAn image picker controller with single selection and multiple selection. Support to select lots photos with panning gesture.
License: MIT License
An image picker controller with single selection and multiple selection. Support to select lots photos with panning gesture.
License: MIT License
I have the -com.apple.CoreData.ConcurrencyDebug 1
option in build scheme enabled. And when ever I try to present a picker view controller. i get an exception.
This is the screenshot of the error.
Output on the console:
2015-06-28 23:38:40.097 ***[15457:833850] ---------> Camera Roll
2015-06-28 23:38:40.104 ***[15457:833850] [[ASSETHELPER getGroupAtIndex:nIndex] valueForProperty:ALAssetsGroupPropertyName] : Camera Roll
Love the style and functionality of this control, would be awesome with a similarly styled camera.
I need get video files , Where you should modify the code? Anxious, please ~~~
Hello,
I'm trying to use this controller in my project (iOS 7.1 beta 5), but I get a crash every time I try to select pictures on anything else than the camera roll.
The exception is the following:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
And it fires on line 173 of the DoImagePickerController.m class.
Everything works as it should if I select photos in my camera roll.
Any idea?
Thanks.
I am using using this library in my ios project. It is not working for iOS 11.0.3 for selecting images from gallery.
Hello there
Is there a way to pick the camera roll by default and keep the album selection?
Thanks.
Hi bro,
Please test the following scenario which I got crashed.
Result : Application will crash when loading photo.
Reason: Application tries to create thumbnail, but the empty folder haven't had photo yet. It means the operation is on the nil pointer.
Source : AssetHelper.m
- (NSDictionary *)getGroupInfo:(NSInteger)nIndex
{
return @{@"name" : [_assetGroups[nIndex] valueForProperty:ALAssetsGroupPropertyName],
@"count" : @([_assetGroups[nIndex] numberOfAssets]),
@"thumbnail" : [UIImage imageWithCGImage:[(ALAssetsGroup*)_assetGroups[nIndex] posterImage]]};
}
My temp solution
- (NSDictionary *)getGroupInfo:(NSInteger)nIndex
{
if ([_assetGroups[nIndex] numberOfAssets] != 0) {
return @{@"name" : [_assetGroups[nIndex] valueForProperty:ALAssetsGroupPropertyName],
@"count" : @([_assetGroups[nIndex] numberOfAssets]),
@"thumbnail" : [UIImage imageWithCGImage:[(ALAssetsGroup*)_assetGroups[nIndex] posterImage]]};
} else {
return @{@"name" : [_assetGroups[nIndex] valueForProperty:ALAssetsGroupPropertyName],
@"count" : @([_assetGroups[nIndex] numberOfAssets])};
}
}
Workflow:
Check whether the folder has photo,
Result:
UI will list the empty folder name as well.
It shows empty content if user clicks into the folder.
Plus:
And even you may not want to list the empty folder in the list, this depends on your designate UX, here I just give the report and simple solution.
Cheers
Such nice software should be possible to be downloaded as Pod.
Hi,
This is great project, however, I found it cannot work in iPad.
It seems it has memory leak.
I tested in iOS7.1 Xcode5.1 with MacOSX 10.9
The memory leak seems from the 3rdSource (UIImage-ResizeMagic).
When I try to present your DoImagePickerController from super view, it cannot display photos, and then crash as memory exhaust.
Regards,
For some reason the "All Photos" folder, isn't showing all photos "iOS 8.x". it shows only the photos token the same day.
Any idea how to solve this?
Does this display video thumbnails and a preview on tap and hold?
I love your project, and i will love to use the in a mini game I work with.
In the game, the user can choose the own pictures, and use them in the game.
My questions is, how can i load the picture in to the, the user have choose.
my code look like this
thanks Jens
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.