I am using translucent navigation controller in my ios app.
The problem is that my CollectionViewcontroller moves under the translucent NavigationController. But when i change it to blacknavigationController then it gets corrected.
I want the translucentNavigationController to behave like blackNavigationController? I dont know how to achieve this?
Thank you.
I have already tried adding section header to collection view but the problem with that is upon device rotation the size of header remains same.
MY Rotation Handling COde @j_mcnally
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
UIInterfaceOrientation interfaceOrientation = [[UIApplication sharedApplication] statusBarOrientation];
if (UIInterfaceOrientationIsPortrait(interfaceOrientation))
{
NSLog(@"Is in portrait Mode");
self.collectionView.contentInset=UIEdgeInsetsMake(44.0f, 0.0f, 0.0f, 0.0f);
self.collectionView.scrollIndicatorInsets=UIEdgeInsetsMake(45.0f, 0.0f, 0.0f, 0.0f);
}
else{
NSLog(@"Is in landscape Mode");
self.collectionView.contentInset=UIEdgeInsetsMake(32.0f, 0.0f, 0.0f, 0.0f);
self.collectionView.scrollIndicatorInsets=UIEdgeInsetsMake(33.0f, 0.0f, 0.0f, 0.0f);
}
}
With rotation handling the problem seems to be fixed unless i do a left rotation and then right rotation. Then the result is this