I have a UIViewController with UIScrollView inside. The scroll view automatically adjust its frame according with device screen.
My problem is that in the code I can't read the correct frame of scroll view.
self.scrollView.frame always return {{0, 0}, {600, 600}} that's the default size of view controller in Interface Builder xib.
I have tried in viewDidLoad and in loadView methods but the frame is still {{0, 0}, {600, 600}}.
- (void)viewDidLoad {
[super viewDidLoad];
self.scrollView.pagingEnabled = YES;
self.scrollView.delegate = self;
NSLog(@"%@",NSStringFromCGRect(self.scrollView.frame));
}
Ideas ?