Hi, I'm having an issue with the position of a view that is loaded from a view controller's Xib.
If I load initialize a normal view and return it the view is positioned properly. If I initialize a view controller, then use it's view (xib) the views top left edge is positioned in the center of the screen.
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView {
NoPhotosViewController *test = [[NoPhotosViewController alloc] init];
test.view.frame = CGRectMake(0, 0, 320, 900);
UIView * test2 = [[UIView alloc] init];
test2.backgroundColor = [UIColor redColor];
test2.frame = CGRectMake(0, 0, 320, 900);
return test.view;
}
Screen shots.