Closed paresh-navadiya closed 9 years ago
Replace below methods with new one :
(void)positionInnerContainer { CGRect innerContainerRect;
innerContainerRect = CGRectMake( 0.0,0.0, _container.frame.size.width,_container.frame.size.height);
_innerContainer.frame = innerContainerRect; }
(void)positionScroller { CGRect scrollerRect;
scrollerRect = CGRectMake( 0.0,0.0, _innerContainer.frame.size.width,_innerContainer.frame.size.height-kToolbarHeight); _scroller.frame = scrollerRect; }
Also replace UINavigationController (FGallery) category if using UINavigationController
@implementation UINavigationController (FGallery)
-(void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id
@safecase123 , great answer! I had a problem with iPad and this code solve it! Many thanks!
This code should be in the main project :)