Open saturngod opened 12 years ago
Following code is working but there is no NavigationBar
promoGallery* gallery = [[promoGallery alloc] init]; gallery.imageArray = self.fullImageArray; FGalleryViewController* pVC = [[FGalleryViewController alloc] initWithPhotoSource:gallery]; pVC.currentIndex = btn.tag; [self presentModalViewController:pVC animated:YES];
So, I put navigation controller like below and it crash
promoGallery* gallery = [[promoGallery alloc] init]; gallery.imageArray = self.fullImageArray; FGalleryViewController* pVC = [[FGalleryViewController alloc] initWithPhotoSource:gallery]; pVC.currentIndex = btn.tag; UINavigationController* navController = [[UINavigationController alloc] initWithRootViewController:pVC]; [self presentModalViewController:navController animated:YES];
I check the code and it's problem in
- (void)updateScrollSize { float contentWidth = _scroller.frame.size.width * [_photoSource numberOfPhotosForPhotoGallery:self]; [_scroller setContentSize:CGSizeMake(contentWidth, _scroller.frame.size.height)]; }
there is no _photoSource after init with UINavigationBar
Thanks for this post, you saved my day...
Following code is working but there is no NavigationBar
So, I put navigation controller like below and it crash
I check the code and it's problem in
there is no _photoSource after init with UINavigationBar