ios - UICollectionView design flow layout for attached image -
i attached images have done , have achieve. please guide me achieve this.
i have done till now:
i want achieve following:
here code:
- (cgsize)collectionview:(uicollectionview *)collectionview layout:(uicollectionviewlayout *)collectionviewlayout sizeforitematindexpath:(nsindexpath *)indexpath { cgsize size; if (indexpath.row == digit_int_2 || indexpath.row == digit_int_6 || indexpath.row == digit_int_7) size = cgsizemake(150, 68); else if (indexpath.row == digit_int_3 || indexpath.row == 13) size = cgsizemake(150, 150); else size = cgsizemake(68, 68); return size; }
i find answer , achieved customise uicollectionviewflowlayout class , inheriting method - (nsarray *) layoutattributesforelementsinrect:(cgrect)rect
, play previous item frame , current item frame.
but after new problem came 1 item disappear after scrolling. failed find why happening. after 2 days work have move way achieve this. wai ha lee formatting question.
now disappear problem solved question:- uicollectionview's cell disappearing
Comments
Post a Comment