Scaling and restore UIView
<p>last week I asked the question, but this weekend I find more details about the question.</p>

<p>I've a problem when scaling and restoring a UIView, what I'm doing is scaling a UIView then restore it back.
here are the main code:</p>

<pre><code>//scaling
[UIView animateWithDuration:0.3 animations:^{
     CGAffineTransform t = CGAffineTransformScale(CGAffineTransformIdentity, 0.9, 0.9);
     [view setTransform:t];      
}
//restore
- (void)restore
{
   [UIView
    animateWithDuration:0.3
    animations:^{
       CGAffineTransform t = CGAffineTransformIdentity;
       [_parentView setTransform:t];
    }
}
</code></pre>

<p>and I use in the app delegate, like below</p>

<pre><code>- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{
   UINavigationController *navigationController = (UINavigationController *)self.window.rootViewController;
   //scale navigationController.view and restore it
}
</code></pre>

<p>The problem is:</p>

<pre><code>1.when the app is running, it works correctly.
2.the app fire a LocalNotification and was turned into background, then user click on the alert, put the app back, the scaling works in the wrong way: it just scale the UIView in  width, no scaling in the height, but the restore works correctly, the UIView becomes bigger both in height and width, in result the UIView become too big in height.
</code></pre>

<p>Why the scaling in height can't work when the app is turned on from background?</p>
