简体   繁体   中英

For NimbusKit NIToolbarPhotoViewController is there a way to set zoom scale

I'm using NIToolbarPhotoViewController by subclassing it. So far everything is working, but i can not change max zoom scale like you can with scroll views. I'm set

photoAlbumView.zoomingAboveOriginalSizeIsEnabled = YES 

and

photoAlbumView.pagingScrollView.maximumZoomScale = 100

But that didn't seen to do anything. It's still using the default zoom factor i think it's around 2, any ideas?

Try setting maximumScale to 100 on the returned view in the pageViewForIndex data source method.

The problem you're seeing is that the maximumScale is set on the individual photo view. The paging scroll view is simply what contains and manages the multiple pages of photos.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM