Sunday 15 March 2015

ios7 - Resize UICollectionView and its sub views in IOS -



ios7 - Resize UICollectionView and its sub views in IOS -

i developing ios in required show images in gridview. have used uicollectionview , images getting displayed in grid.

i have used swrevealviewcontroller implement sidebar navigation.

what want when sidebar opened uicollectionview , cells resize shown in image.

have done

the above images same app built in android.

below images have done ios app.

if can help acheive same great help. in advance.

when tapping button phone call

[self.collectionview performbatchupdates:nil completion:nil];

it will invalidate layout , resize cells animation (you can pass nil both block params if you've no adjustments perform).

and

- (cgsize)collectionview:(uicollectionview *)collectionview layout:(uicollectionviewlayout *)collectionviewlayout sizeforitematindexpath:(nsindexpath *)indexpath { // adjust cell size mode slider opened or closed if (isslideropened) { homecoming cgsizemake(100.f, 100.f); } homecoming cgsizemake(200.f, 200.f); }

ios ios7 uicollectionview uicollectionviewcell

No comments:

Post a Comment