Hi all.
Trying to figure out a way to reposition whole.. XIB ..
Just want to move it down 20 or so pixels for iPhone 5, but nothing seems to work. On any plain old view works perfectly..
tried this:
Does nothing any ideas?
Thanks.
PS. There is a scrollview and two image views in the XIB
Trying to figure out a way to reposition whole.. XIB ..
Just want to move it down 20 or so pixels for iPhone 5, but nothing seems to work. On any plain old view works perfectly..
tried this:
Code:
- (void)viewDidLoad {
[super viewDidLoad];
pageControlBeingUsed = NO;
NSLog(@"viewDidLoad");
// reposition iphone models code //
CGFloat deltaYYMover = 0.0;
CGRect deltaViewMover = self.view.frame;
if (IS_IPHONE5) {
deltaYYMover = 40.0;
scalYY = SCALEXFOR5;
}
deltaViewMover.origin.y = deltaViewMover.origin.y + deltaYYMover;
self.view.frame = deltaViewMover;
// other stuff ...
)
Thanks.
PS. There is a scrollview and two image views in the XIB
Last edited: