iOS-NBUImagePicker icon indicating copy to clipboard operation
iOS-NBUImagePicker copied to clipboard

Images count issue

Open ijameelkhan opened this issue 7 years ago • 5 comments

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]; } }

ijameelkhan avatar Nov 07 '17 16:11 ijameelkhan

Right. Could make a PR?

rivera-ernesto avatar Nov 07 '17 16:11 rivera-ernesto

it skips half of the selected images if i select 4 i get only 2 in callback and so on

ijameelkhan avatar Nov 07 '17 16:11 ijameelkhan

i forked the repo and fixed this problem but seems likely some issue in 1.60 'MotionOrientation_PTEz/MotionOrientation.h' file not found

ijameelkhan avatar Nov 07 '17 16:11 ijameelkhan

Was your branch created from the latest master?

rivera-ernesto avatar Nov 07 '17 18:11 rivera-ernesto

Yes and also please try using it in Xcode 9

ijameelkhan avatar Nov 08 '17 16:11 ijameelkhan