iphone - iOS 7 setContentOffset in viewDidLoad resettting to 0 -


I have the UISearchBar attached to the top of the table view. The idea is that when you If you pull down you can search.

Therefore I have attached the search bar under IOS 6 and then in the view, Deedload I "setContentOffset" to CGPointMake (0, searchBar .frame.size.height) content offset Sets 44

This works perfectly for me.

Although the behavior in iOS 7 is not the same.

When I am in the Setdant Offset view view, I see an internal call on _notifyDidScroll which sets the content back to offset 0 ( viewDidLoad After completion). The funny thing is that my search bar is not -44.

How can I do iOS6 and IOS7 behave in the same way? I do not care that IOS6 is starting to denounceDidScroll or iOS 7, but I want stability between the two versions!

For now, I have to use a terrible solution which is iOS 7 and iOS 6.

I think you have to disable undeatables in your view controller. You can do it in Storyboard or .xib in the property of your UIViewController.

Edit:

Enter image details here

Hope this will help.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -