Tepmnthar Tepmnthar - 1 year ago 95
Objective-C Question

sizeForItemAtIndexPath not work with custom flowLayout?

I've replaced default

with my custom subclass of
, and I found that
didn't work any longer.
Did I miss something, or I should set itemSize in my custom flowLayout?

Answer Source

In your subclass, use itemSize instead:

- (CGSize)itemSize
    return CGSizeMake(100,100);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download