iphone - iOS 7 setContentOffset in viewDidLoad resettting to 0 -
I have the Therefore I have attached the search bar under IOS 6 and then in the view, Deedload I "setContentOffset" to 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 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: Hope this will help. UISearchBar attached to the top of the table view. The idea is that when you If you pull down you can search.
CGPointMake (0, searchBar .frame.size.height) content offset Sets 44
_notifyDidScroll which sets the content back to offset 0 (
viewDidLoad After completion). The funny thing is that my search bar is not -44.
Comments
Post a Comment