tags:

views:

15

answers:

1

Hi!

When I push a UIViewController within a UINavigationController, the UIScrollView in the view changes dimensions. Now even I am trying to resize the UIScrollView. It wont simply resize. It maintains the framework dimensions. Any idea why this would be happening.

Example:

My NIB has a view which has a scrollview with dimensions (320, 430)

now when I push the UIViewController associated with the view the scrollview still shows dimensions has 320, 430, but is drawn much smaller then 320,430 alt text

Any suggestions in this regard.

A: 

This was happening because of the autosizing mask property of the view i created programmatically was set. Resetting the flag solved the problem.