答案 0 :(得分:2)
-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
duration:(NSTimeInterval)duration
{
if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation))
{
self.collectionViewObj.frame = CGRectMake(0, 0, 568, 320);
}
else
{
self.collectionViewObj.frame = CGRectMake(0, 0, 320, 568);
}
}