addSubview to a UIView
Hi, I have a view that I add to a window like that
[self.window addSubview: baseViewContr.view];
this view should be the only one added to a window because of autorotation problems.
other View should be added to baseViewContr instead of to a window.
but the problem is when I add view to baseViewContr it's shifted down by 20 pixels.
[baseViewContr.view addSubview: someViewContr.view];
the solution is to make this
someViewContr.view.frame= CGRectMake(0, 0, 320, 480);
but when the device is in a landscape mode, size of someViewContr remains 320, 480 instead of (480, 320) in landscape.
so what should I do to make it right?
|