我试图制作一个圆形的集合视图.

不知怎的,我设法让视图循环,但坚持滚动.我的集合视图单元格和布局是圆形的,但我无法使单元格可滚动.
`#import "CircleLayout.h"
#define ITEM_SIZE 70
@interface CircleLayout()
// arrays to keep track of insert, delete index paths
@property (nonatomic, strong) NSMutableArray *deleteIndexPaths;
@property (nonatomic, strong) NSMutableArray *insertIndexPaths;
@end
@implementation CircleLayout
-(void)awakeFromNib{
self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
}
-(id)init
{
if (!(self = [super init])) return nil;
self.itemSize = CGSizeMake(60.0, 200.0);
self.sectionInset = UIEdgeInsetsMake(0, 60, 0, 60);
self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
return self;
}
- (id)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
self.itemSize = CGSizeMake(60.0, 200.0);
self.sectionInset = UIEdgeInsetsMake(0, …Run Code Online (Sandbox Code Playgroud)