ios - UICollectionVIew zoom of a single UIImageView in a cell -


how zoom uiimageview takes fullscreen cell in uicollectionview image?

since uicollectionview subclass of uiscrollview should simple..

i tried set minimumzoomscale, maximumzoomscale , viewforzoominginscrollview: result mess.

in viewforzoominginscrollview returned uiimageview, not work.

now i'm trying return visualized cell, on zooming image changes first cell.

it zooms messes collection view.

func viewforzoominginscrollview(scrollview: uiscrollview) -> uiview? {      if let selectedindex = self.collectionview.indexpathsforvisibleitems().last as? nsindexpath     {         let cell = self.collectionview.cellforitematindexpath(selectedindex)         return cell     }     return nil } 

so, need zoom image (cell) on screen?

moreover pagingenabled goes off automatically (that's panning zoomed image, not scrolling collection)

you need put new uiscrollview inside uicollectionview since should not mess zooming of collectionview itself.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -