On May 17, 2010, at 8:58 AM, sebi wrote:
> I have a ViewController with a view. In that view there is an UIImageView
> background subview. Now, when I rotate the device I want to switch the image
> of the UIImageview so it fills the view again without being distorted. The
> only working method
First, make sure the "interfaceOrientation" property is correct on your view
controller after the rotation.
If it's the case, check that your view can be resized properly (either with
autoresizing masks or with a custom layoutSubviews, or any other custom
mechanism).
If it's not the case, it m
If you think that's confusing, wait until you try to use an external monitor
and see what the rotation does to you. So far, I've successfully managed to
counter-rotate the external view's window so my text stays upright, but
getting the view and its contents to scale properly is proving more elusi
On May 14, 2010, at 8:17 AM, David Duncan wrote:
> On May 12, 2010, at 12:52 PM, sebi wrote:
>
>> hello,
>>
>> sorry, this is probably a very simple thing, but i am quite puzzled right
>> now.
>>
>> when i do this in my view controller:
>>
>> -
>> (void)didRotateFromInterfaceOrientation:(U
On May 12, 2010, at 12:52 PM, sebi wrote:
> hello,
>
> sorry, this is probably a very simple thing, but i am quite puzzled right now.
>
> when i do this in my view controller:
>
> -
> (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
> {
> CGSize
hello,
sorry, this is probably a very simple thing, but i am quite puzzled right now.
when i do this in my view controller:
-
(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
CGSize size = self.view.frame.size;
NSLog(NSStringFromCGSize(