Resizing a UIView on iPhone at run-time -
Whenever iAd scrolls down from the top, then I'm trying to resize the view of my app problem That is, in run-time, when I set the size of the size of the relevant scene size, the size changes 9 iAd attracts at the top of the top 50 vertical pixels.)
If I set UIView size at design time, then I see that the size of the scene has changed (when I run the app O).
So what am I doing in run-time which is not being generated due to my size change?
The structure of the NIB of my controller looks like this:
& gt; & Gt; View & gt; & Gt; See (associated with IB 'content view') & gt; & Gt; Customview (UIView) & gt; - ScrollView & gt; - Toolbar (top) & gt; - The toolbar (below)
has added the adBannerView to the code like this: [self.view addSubView: adBannerView];
ConteView's origin.y and size.height is what IM to update (make it y = 50, and height = original height - 50). It should be scaled down so that enough room can be made to filter the banner at the top (50 pixels in height).
Are you sure the view is not zero? Did you hook it into the interface builder? If you are calling -setframe on the scene and nothing is going on, this view is probably not valid.
Comments
Post a Comment