Re:Implementing a Sticky Input Field in iOS
by sandofsky on Monday August 10, 2015 @10:19AM
(#10034742)
You're observing the superview in a hierarchy you don't own. In your code, you have an iOS version check, presumably since the property you're looking for changed between iOS versions.
yes, that I agree, it may break between iOS versions. i'm all ear to other approach if any
Re:Implementing a Sticky Input Field in iOS
by sandofsky on Monday August 10, 2015 @11:37AM
(#10035280)
You file a ticket with Apple and stick with documented APIs.
will do and hope Apple may do something about that.
until then, will stick to current solution and test ahead of any new iOS release.
Re:Implementing a Sticky Input Field in iOS
by sandofsky on Monday August 10, 2015 @01:24PM
(#10035978)
You've decided on the path of higher maintenance, and you've increased the risk of Apple rejection.
Maybe this decision won't bite you, but this mentality will.
i keep my options open until I find a better solution.
i'm assuming engineers that build FB messenger, WhatsApp, Twitter etc. could be using similar approach, but I am more than happy to be proven wrong.
The library is not really using KVO to observe private APIs, bounds/center of UIView is public property.