I’ve created a UIViewController with a UIView defined in the loadView method. When I presented the UIViewController‘s view size in the viewDidAppear: method changed to an enormous size. I will describe the solution in my answer.
I’ve created a UIViewController with a UIView defined in the loadView method. When I
Share
First I’ve created an iPhone project. Then changed it to iPhone/iPad project. And in the
MainWindow.xibfile the iPhone settings remained. Because of this, the system increased my view’s size to a big number. The solution was to create another XIB file namedMainWindow~ipad.xiband set the window size properly.If anybody has any question about this problem, please don’t hesitate to ask it.