How do you add an UIView over a scroll but the view should stay still?
iPhone Interface Builder question: Does anybody know how to add a small UIView over a ScrollView yet the image should stay still? Basically I already have a full image (320 x 480) over the Scroll, so the image scrolls, but now I need to add a AdMob View (320 x 48) on top of them. The problem is after i build and run, the ad scrolls as well. How do you make it stay still? Thank you!
When you add an element in IB by dragging it from the Library window onto the view you are editing, if you drag it onto a subview there, it will make the element a subview of that subview. In this case it's making the element a subview of the scrollview.
You need to take it out. This is can be done for example in the main .xib window of IB, where you can select the listing view mode, open the group for the view you are editing, there open the group for the scrollview, and then drag the element out of the scrollview into the main view (but after the scrollview so that it will remain on top).
It's much simpler than the description above might make it seem.
When you add an element in IB by dragging it from the Library window onto the view you are editing, if you drag it onto a subview there, it will make the element a subview of that subview. In this case it's making the element a subview of the scrollview.
You need to take it out. This is can be done for example in the main .xib window of IB, where you can select the listing view mode, open the group for the view you are editing, there open the group for the scrollview, and then drag the element out of the scrollview into the main view (but after the scrollview so that it will remain on top).
It's much simpler than the description above might make it seem.