IOS7 moving UIView

I have a UIView defined in Interface Builder.

I need to nudge it down if the screenSize is 568.

I can not figure out auto layout. My screen has:

nudgeView iADbanner TabBar

I have my IBOutlet set to nudgeView and figured I could nudge it. So in my viewDidLoad, I am thinking of something like

if(iOSDeviceScreenSize.height == 568){
    [nudgeView setFrameY: 40]; //no idea what this line should look like
}

which should just move that view down.

iAd and TabBar are aligned to bottom and do the right thing.

So any tips on how I can change the Y on the nudgeView?

Thanks,

Ian

Answers


if(iOSDeviceScreenSize.height == 568){

  CGRect frame = nudgeView.frame;
  frame.origin.y = 40;
  nudgeView.frame = frame;
 }

Need Your Help

Can I use NSMutableArray insertObjects:atIndexes to insert multiple items in different order?

ios objective-c nsmutablearray

I'd like to insert a range of items into an NSMutableArray in a single operation using insertObjects:atIndexes, and sort the items at the same time - but I can't figure out quite how to build the c...

Maven hibernate jar not found (3.5.1-Final)

hibernate maven-2 orm

i'm trying to update the hibernate dependecy in my pom, I had the 3.3.2.GA version and i changed to 3.5.1-Final. But maven can't find the jars in the repo, so checking the url.