You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I did try use IDWPhotoBrowser on the big array of the pictures, I find the problem with scrolling picture.
On iPad or iPad-simulator scroll don’t completed.
You can see this effect on scroll pictures with array more 20000 pictures and index more 18000.
This is the sample code in the file «menu.m» for view this effect scrolling:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Create an array to store IDMPhoto objects
NSMutableArray *photos = [NSMutableArray new];
IDMPhoto *photo;
if(indexPath.section == 0) // Local photo
{
photo = [IDMPhoto photoWithFilePath:[[NSBundle mainBundle] pathForResource:@"photo2l" ofType:@"jpg"]];
photo.caption = @"The London Eye is a giant Ferris wheel situated on the banks of the River Thames, in London, England.";
[photos addObject:photo];
}
else if(indexPath.section == 1) // Multiple photos
{
if(indexPath.row == 0) // Local Photos
{
photo = [IDMPhoto photoWithFilePath:[[NSBundle mainBundle] pathForResource:@"photo1l" ofType:@"jpg"]];
photo.caption = @"Grotto of the Madonna";
[photos addObject:photo];
photo = [IDMPhoto photoWithFilePath:[[NSBundle mainBundle] pathForResource:@"photo2l" ofType:@"jpg"]];
photo.caption = @"The London Eye is a giant Ferris wheel situated on the banks of the River Thames, in London, England.";
[photos addObject:photo];
photo = [IDMPhoto photoWithFilePath:[[NSBundle mainBundle] pathForResource:@"photo3l" ofType:@"jpg"]];
photo.caption = @"York Floods";
[photos addObject:photo];
photo = [IDMPhoto photoWithFilePath:[[NSBundle mainBundle] pathForResource:@"photo4l" ofType:@"jpg"]];
photo.caption = @"Campervan";
[photos addObject:photo];
}
else if(indexPath.row == 1 || indexPath.row == 2) // Photos from Flickr or Flickr - Custom
{
for (int i=0; i < 25000; i++) {
[photos addObject:[IDMPhoto photoWithURL:[NSURL URLWithString:@"http://farm4.static.flickr.com/3567/3523321514_371d9ac42f_b.jpg"]]];
}
}
}
// Create and setup browser
IDMPhotoBrowser *browser = [[IDMPhotoBrowser alloc] initWithPhotos:photos];
browser.delegate = self;
[browser setInitialPageIndex:20000];
if(indexPath.section == 1) // Multiple photos
{
if(indexPath.row == 1) // Photos from Flickr
{
browser.displayCounterLabel = YES;
browser.displayActionButton = NO;
}
else if(indexPath.row == 2) // Photos from Flickr - Custom
{
browser.actionButtonTitles = @[@"Option 1", @"Option 2", @"Option 3", @"Option 4"];
browser.displayCounterLabel = YES;
browser.useWhiteBackgroundColor = YES;
browser.leftArrowImage = [UIImage imageNamed:@"IDMPhotoBrowser_customArrowLeft.png"];
browser.rightArrowImage = [UIImage imageNamed:@"IDMPhotoBrowser_customArrowRight.png"];
browser.leftArrowSelectedImage = [UIImage imageNamed:@"IDMPhotoBrowser_customArrowLeftSelected.png"];
browser.rightArrowSelectedImage = [UIImage imageNamed:@"IDMPhotoBrowser_customArrowRightSelected.png"];
browser.doneButtonImage = [UIImage imageNamed:@"IDMPhotoBrowser_customDoneButton.png"];
browser.view.tintColor = [UIColor orangeColor];
browser.progressTintColor = [UIColor orangeColor];
browser.trackTintColor = [UIColor colorWithWhite:0.8 alpha:1];
}
}
// Show
[self presentViewController:browser animated:YES completion:nil];
//[self.navigationController pushViewController:browser animated:YES];
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
}
The text was updated successfully, but these errors were encountered:
Hi,
When I did try use IDWPhotoBrowser on the big array of the pictures, I find the problem with scrolling picture.
On iPad or iPad-simulator scroll don’t completed.
You can see this effect on scroll pictures with array more 20000 pictures and index more 18000.
This is the sample code in the file «menu.m» for view this effect scrolling:
The text was updated successfully, but these errors were encountered: