プロジェクト
概要
セルを半円状に配置し、心地よい魚眼効果を加える UICollectionViewLayout。
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルAWCollectionViewDialLayout
UICollectionViewLayout for displaying cells in a semi-circle with a nice fish eye effect.
Very handy for quickly browsing items with your left thumb without having some of the content hidden behind your finger while you scroll.

####Initialize Layout
// Radius : The radius of your circle
// Angular spacing: Angle between items (deg)
// Cell Size: Size of your cell
// Alignment: Supports 2 Types: WHEELALIGNMENTLEFT and WHEELALIGNMENTCENTER
// X-Offset: To translate the circle along the x-axis
AWCollectionViewDialLayout *dialLayout = [[AWCollectionViewDialLayout alloc] initWithRadius:300.0 andAngularSpacing:18.0 andCellSize:CGSizeMake(240, 100) andAlignment:WHEELALIGNMENTCENTER andItemHeight:100 andXOffset:70];
####Enable Snap Mode
[dialLayout setShouldSnap:YES];
####Programmatically scroll to item at index
Use the cell_height variable you used to initialize the CollectionViewLayout and multiply it by the IndexPath.item
// Scroll to item at indexPath (0,2)
[self.collectionView setContentOffset:CGPointMake(0, cell_height * 2) animated:YES];
Flip Horizontally
You can set the flip option to YES if you want to display your items on the right side of the CollectionView.
[dialLayout setShouldFlip:YES];
関連プロジェクトを探す
読み込み中…