-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Description
I have downloaded your code and in ViewController.m added below code to autoscroll collection view to some index on startup ( like national geographic city guide app )
but it is giving layout issue..View is tilting slightly. can you please tell me how do I get this effect?

-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:YES];
[NSTimer scheduledTimerWithTimeInterval:0.5
target:self
selector:@selector(targetMethod)
userInfo:nil
repeats:YES];
}
-(void)targetMethod
{
NSIndexPath *index = [NSIndexPath indexPathForRow:0 inSection:sectionCountForCard];
if(sectionCountForCard<4)
{
[self.collectionV scrollToItemAtIndexPath:index atScrollPosition:UICollectionViewScrollPositionRight animated:YES];
sectionCountForCard++;
}
}
Metadata
Metadata
Assignees
Labels
No labels