Coder Social home page Coder Social logo

donobono / doimagepickercontroller Goto Github PK

View Code? Open in Web Editor NEW
587.0 587.0 92.0 9.79 MB

An image picker controller with single selection and multiple selection. Support to select lots photos with panning gesture.

License: MIT License

Objective-C 100.00%

doimagepickercontroller's People

Contributors

donobono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doimagepickercontroller's Issues

Please Help

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

  • (void) loadCellImages {
    [self unloadCellImages];
    for (int i=1;i<(totalcolors+1);i++) {
    [cellImages addObject:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@%d",[self getFilePrefix],i] ofType:@"png"]]];
    }
    }

thanks Jens

Crash just before presenting picker view. if coredata concurrency debug option enabled.

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.
screenshot 2015-06-28 23 34 23

And the Stack:
screenshot 2015-06-28 23 35 36

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

NSInvalidArgumentException

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.

Not Work in iPad

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,

Cocoapods

Such nice software should be possible to be downloaded as Pod.

All Photo not working properly on iOS8

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?

Crashed when album is empty

Hi bro,

Please test the following scenario which I got crashed.

  1. create an empty folder in Photos(Apple App), let's call it 'test'
  2. run your application

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,

  1. if has, work as previous
  2. if not, don't generate image for thumbnail.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.