Note that there are some explanatory texts on larger screens.

plurals
  1. POI am trying to implement NIPhotoScrollView but My code is not working ie data source methods and delegate methods are not being called
    primarykey
    data
    text
    <p>I have been trying to implement NIPhotoAlbumScrollView <a href="http://jverkoey.github.com/nimbus/interface_n_i_photo_album_scroll_view.html" rel="nofollow noreferrer">http://jverkoey.github.com/nimbus/interface_n_i_photo_album_scroll_view.html</a>. I am using photos in app bundle. But this code is not working. Here is link of full code <a href="http://pastebin.com/ysvPL6ee" rel="nofollow noreferrer">http://pastebin.com/ysvPL6ee</a></p> <pre><code>AlbumViewController.h @interface AlbumViewController : NIToolbarPhotoViewController &lt;NIPhotoAlbumScrollViewDataSource&gt; { NSMutableArray* photoInformation; } @end #import "AlbumViewController.h" @implementation AlbumViewController #pragma mark - View lifecycle // Implement loadView to create a view hierarchy programmatically, without using a nib. - (void)loadView { photoInformation = [[NSMutableArray alloc] init]; for(int i=0; i&lt;2; i++) { NSString* originalImageSource = @"Photo001.jpg"; NSString* thumbnailImageSource = @"img1.jpg"; NSDictionary* prunedPhotoInfo = [NSDictionary dictionaryWithObjectsAndKeys: originalImageSource, @"originalSource", thumbnailImageSource, @"thumbnailSource", nil]; [photoInformation addObject:prunedPhotoInfo]; } self.photoAlbumView.dataSource = self; self.title = NSLocalizedString(@"Loading...", @"Navigation bar title - Loading a photo album"); [self.navigationController setNavigationBarHidden:NO]; [self.photoAlbumView reloadData]; } </code></pre> <p>Edit</p> <p>Not working means - It does not load images and not even show loading image</p> <pre><code>self.photoAlbumView.loadingImage = [UIImage imageWithContentsOfFile: NIPathForBundleResource(nil, @"img1.jpg")]; </code></pre> <p><img src="https://i.stack.imgur.com/QSKvw.png" alt="Just shows black screen"></p> <p>The - (NSInteger)numberOfPagesInPagingScrollView:(NIPagingScrollView *)pagingScrollView or any other methods are not being called.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload