You need a table but with the dynamic view like Facebook home?
GTScrollView allows you to dynamically add unlimited views. Every view will be placed correctly in order after the last view added.
Include in your project the class GTScrollViewController.h
and GTScrollViewController.m
and import:
#import "GTScrollViewController.h"
Now create your GTScrollViewController
and add your custom view:
GTScrollViewController *scroller = [[GTScrollViewController alloc] init:nil];
[scroller addViews:[[NSArray alloc] initWithObjects:first,second,... nil]];
or init GTScrollViewController
with the NSArray
of your custom view:
GTScrollViewController *scroller = [[GTScrollViewController alloc] init: [[NSArray alloc] initWithObjects:first,second,... nil]];
[scroller addViews:[[NSArray alloc] initWithObjects:first,second,... nil]];
or init GTScrollViewController
with the NSArray
of your custom view:
GTScrollViewController *scroller = [[GTScrollViewController alloc] init: [[NSArray alloc] initWithObjects:first,second,... nil]];
That's it, really!
For now, these methods are available:
-(id)init:(NSArray *)views;
-(id)init:(NSArray *)views andPaddingTopBottom:(float)padTB;
-(void)setBackgroundImage:(UIImage*) image;
-(void)addView:(UIView *)view;
-(void)addViews:(NSArray *)views;
-(void)setShadowRadius:(float)sr shadowOpacity:(float)so andCornerRadius:(float)cr;
-(id)init:(NSArray *)views andPaddingTopBottom:(float)padTB;
-(void)setBackgroundImage:(UIImage*) image;
-(void)addView:(UIView *)view;
-(void)addViews:(NSArray *)views;
-(void)setShadowRadius:(float)sr shadowOpacity:(float)so andCornerRadius:(float)cr;
-(void)restoreShadowRadiusOpacityAndCornerRadius;
QuartzCore framework is require.
Play with it and ask me whatever you want.
Gianluca Tursi