Note that there are some explanatory texts on larger screens.

plurals
  1. POLaunch App in PortraitUpsideDown gives translation problems
    primarykey
    data
    text
    <p>I've got several images within my view. On rotation my images are being placed properly by means of a CGAffineTransformTranslate &amp; Rotate. </p> <p>However when I launch in PortraitUpsidedown a translation takes place which I defined wihin the </p> <p>"-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { " method. </p> <p>This translation only has to take place on a orientation change with the device. How can I make sure that this translation doesn't happen on Launch?</p> <p>EDIT:</p> <p>Still got problems after your tip with implementing the viewWillAppear method. </p> <p>Here is some code of my project.</p> <pre><code>-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { [super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration]; if(toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) { image1.transform = CGAffineTransformTranslate( image1.transform, -65.0, 255.0); image2.transform = CGAffineTransformTranslate( image2.transform, -65.0, 255.0); } else { image1.transform = CGAffineTransformIdentity; image2.transform = CGAffineTransformIdentity; } } -(void) viewWillAppear:(BOOL)isRotated{ isRotated = FALSE; } </code></pre> <p>But how do I implement the piece of code where I define</p> <pre><code>isRotated = TRUE; </code></pre> <p>Thanks for your help !</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload