Skip to content

Commit

Permalink
优化图片浏览器
Browse files Browse the repository at this point in the history
  • Loading branch information
lengningLN committed Aug 16, 2018
1 parent dc0818a commit ce384fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LNPhotoBrower/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ - (NSMutableArray *)dataSource
- (void)viewDidLoad {
[super viewDidLoad];

self.collectionView.contentInset = UIEdgeInsetsMake(20, 20, 20, 20);
self.flowLayout.minimumInteritemSpacing = 20;
self.flowLayout.minimumLineSpacing = 20;
self.flowLayout.itemSize = CGSizeMake(100, 100);
Expand Down

0 comments on commit ce384fe

Please sign in to comment.