RGCardViewLayout icon indicating copy to clipboard operation
RGCardViewLayout copied to clipboard

layout issue..View is tilting slightly

Open Piya-Kadam opened this issue 10 years ago • 0 comments

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? simulator screen shot 14-jan-2016 2 11 48 pm

-(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++;

}

}

Piya-Kadam avatar Jan 14 '16 08:01 Piya-Kadam