xcode newbie!
I have a UIView that I can change the size of programmatically. Inside is a UIWebView that is pointing to a jpg (no html). Currently I only see the top left corner of the jpeg. I'm wondering if I should wrap the content into some custom html were I can set the correct size?, or if the UIWebView has some hidden magic for 'scale and fill parent view'. It needs to continue to fill when the parent UIView grows/shrinks in size.
Although I'm sure my next question with either method is controlling the aspect ratio. If I want to maintain the correct asspect ratio, then I will need someway to specify where blank space should be inserted, eg like widescreen TV black bars.
And for bonus points I'm hoping pinch/zoom will work out of the box... Although I'm finding testing pinch in simulator a pain (only seems to pinch from center of display?).
btw this is programatic, not IB!
I have a UIView that I can change the size of programmatically. Inside is a UIWebView that is pointing to a jpg (no html). Currently I only see the top left corner of the jpeg. I'm wondering if I should wrap the content into some custom html were I can set the correct size?, or if the UIWebView has some hidden magic for 'scale and fill parent view'. It needs to continue to fill when the parent UIView grows/shrinks in size.
Although I'm sure my next question with either method is controlling the aspect ratio. If I want to maintain the correct asspect ratio, then I will need someway to specify where blank space should be inserted, eg like widescreen TV black bars.
And for bonus points I'm hoping pinch/zoom will work out of the box... Although I'm finding testing pinch in simulator a pain (only seems to pinch from center of display?).
btw this is programatic, not IB!