Skip to content

Images count issue #19

@ijameelkhan

Description

@ijameelkhan

Review the following code , in the picker class , gives me 3 images if i select 6 in the block as you increasing the index twice in the loop

This is my code where i am having an issue
id callback = ^(NSArray * images){

};

// Prepare result
NSMutableArray * result = _mediaInfos;
if (!_returnMediaInfoMode)
{
result = [NSMutableArray arrayWithCapacity:_mediaInfos.count];
for (NSUInteger index = 0; index < _mediaInfos.count; index++)
{
[result addObject:((NBUMediaInfo *)_mediaInfos[index++]).editedImage];
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions