Initialize a stack view by:
LTStackView *stackView = [[LTStackView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
stackView.dataSource = self;
Then implement LTStackViewDataSource
protocol:
-(UIView*) nextView
{
UIView *view=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 200, 200)];
view.backgroundColor=[UIColor blueColor];
return view;
}
Finaly call:
[stackView next];