Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 2.61 KB

File metadata and controls

32 lines (27 loc) · 2.61 KB

a dynamic layout View Controller which inspired by StoreHouse

pod 'CTStoreHouseDynamicLayoutViewController'

all you need to do is:

CTDynamicLayoutViewController *viewController = [[CTDynamicLayoutViewController alloc] initWithImages:@[
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"],
                                                                                                            [UIImage imageNamed:@"test"]
                                                                                                            ]];
[self presentViewController:viewController animated:YES completion:nil];

demo