0

I have a simple screen with a tableView and a searchBar. It was fine until I used viewDidAppear. Now as I use this method, components behaves unexpectedly. For Example:

  • UISegmentedControll does not appear untill I swap on screen (I have implemented gestures)
  • When I search and then cancel my results, all GUI components are shifted downward.

I am using iOS 7 adjustment:

    if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
    self.edgesForExtendedLayout = UIRectEdgeNone;

Here are the screen shots:

enter image description here

Before I search:

enter image description here

After I search anything and then cancel search, It goes down like this:

enter image description here

iBug
  • 2,334
  • 3
  • 32
  • 65

1 Answers1

0

If you are using Auto-Layout, check your layout constrait. If not, set property autoResizingMask to the correct ones.

Simon
  • 237
  • 1
  • 7
  • So could you please paste your code above? And give us some descriptions about your NIB files too. – Simon Jul 17 '14 at 09:43