Answer the question
In order to leave comments, you need to log in
Why is the searchBar acting weird?
I am using UISearchDisplayController in my ViewControllere for table search
Everything works fine (search, display results.). There is one problem - when you click on the search searchBar becomes larger and changes its position - .
Any guesses what could be the problem? I don't change frame search bara, only search is used in the code. Thank you!
Answer the question
In order to leave comments, you need to log in
Changing edgesForExtendedLayout helped:
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)
self.edgesForExtendedLayout = UIRectEdgeLeft | UIRectEdgeBottom | UIRectEdgeRight;
else
[self respondsToSelector:@selector(edgesForExtendedLayout)];
Is it only in the emulator or on a real device the same way?
Maybe just an emulator bug.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question