Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-28 Thread Tales Pinheiro de Andrade
Em 27/06/2011, às 13:56, David Duncan escreveu: > > The problem is that a UIDeviceOrientaiton also includes Unknown, FaceUp and > FaceDown orientations. Thus !Landscape means Portrait or one of those (ditto > for !Portrait). A large portion of the time, your likely holding the device > in Face

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-27 Thread David Duncan
On Jun 26, 2011, at 12:51 PM, Tales Pinheiro de Andrade wrote: > Well, I used the macro UIDeviceOrientationIsLandscape, I'm assuming that this > is for both sides: > #define UIDeviceOrientationIsPortrait(orientation) ((orientation) == > UIDeviceOrientationPortrait || (orientation) == > UIDevic

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread Tales Pinheiro de Andrade
Well, I used the macro UIDeviceOrientationIsLandscape, I'm assuming that this is for both sides: #define UIDeviceOrientationIsPortrait(orientation) ((orientation) == UIDeviceOrientationPortrait || (orientation) == UIDeviceOrientationPortraitUpsideDown) #define UIDeviceOrientationIsLandscape(ori

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread David Duncan
Yes, scroll views layout during scroll. But the reSl problem is likely in your use of device orientation. Specifically unlike interface orientation, not being landscape is not the same ad bring portrait, as device orientation has 3 additional orientations. If you want to match your interface ori

Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread Tales Pinheiro de Andrade
Hi. I have a few custom views of three kind inside a custom UIScrollview. I'm trying to resize these custom views as the device change the orientation. I added these custom views programatically to the custom UIScrollView. I implemented in the custom UIScrollview the below method - (void)layou