ios - How to Zoom CollectionviewCell Image when it was Selected? -


I have UICollectionview conatin and each cell is an application that CustumCell images I want to make when you choose any image so while it was zoomed in mind, and when the zoom view touch collectionview was shown as a URBMediaFocusViewController Libraray

link Library here

I said it many times But please give me the solution.

This is not very elegant, but how do I do it. Basically frame location and its source UICollectionView cell size, frame and where you can get for this case it (I'd like to appear in fill view), animate between two sizes. Hope it helps.

  - (void) Collection see: (UICollectionView *) See collection Thascilaitmatindpath: (NSIndexPath *) Suckankpth {[collectionView selectItemAtIndexPath: Animated Index: Yes scrollPosition: UICollectionViewScrollPositionCenteredHorizontally]; [Self zoomed image: index]; } - (void) zoomToSelectedImage: (NSIndexPath *) indexPath {UIImageView * zoomImage = [[UIImageView alloc] initWithImage: [self.myPictures objectAtIndex: indexPath.row]]; ZoomImage.contentMode = UIViewContentModeScaleAspectFit; CGRect zoomFrameTo = CGRectMake (0,0, self.view.frame.size.width, self.view.frame.size.height); UICollectionView * CV = (UICollectionView *) [self.view viewWithTag: 66]; // Change anything in the tag value of your archive cv.hidden = TRUE; UICollectionViewCell * cellToZoom = (UICollectionViewCell *) [cv cellForItemAtIndexPath: indexPath]; Cgrtic zoomframeframe = saltoosoom.fr; [Self.view addSubview: zoomImage]; ZoomImage.frame = zoomFrameFrom; ZoomImage.alpha = 0.2; [UIView Animation: 0.2 Animation: ^ {zoomImage.frame = zoomFrameTo; ZoomImage.alpha = 1; } Completion: zero];  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -