Re: iPad interface orientation basics

2010-05-18 Thread David Duncan
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

Re: iPad interface orientation basics

2010-05-17 Thread Rafael Cerioli
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

Subject: Re: iPad interface orientation basics

2010-05-17 Thread Gordon Apple
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

Re: iPad interface orientation basics

2010-05-17 Thread sebi
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

Re: iPad interface orientation basics

2010-05-13 Thread David Duncan
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

iPad interface orientation basics

2010-05-13 Thread sebi
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(