Fix UIButton on top of UIScrollView

ipad, iphone, objective-c, uiscrollview, xcode

Solution

Don't add the UIButton as a subView of the UIScrollView, but instead of "self.view"

Problem

I'm trying to figure out how to overlay a UIButton on top of a UIScrollView. Basically the user would be able to use the scrollview normally. But a button in the top right of the scrollview would remain in a fixed position. Any thoughts?

Original source