开发者

creating universal ios app with iOS4.3 and xcode 4.0

开发者 https://www.devze.com 2023-02-22 06:20 出处:网络
I need to create a Universal iPhone/iPad application using Xcode 4.0. I start creating universal application, there is common app delegate and separate subclass of this app delegate one for iPhone an

I need to create a Universal iPhone/iPad application using Xcode 4.0.

I start creating universal application, there is common app delegate and separate subclass of this app delegate one for iPhone and iPad. So I override the didFinishLaunchingWithOptions and add a viewcontroller.

But my problem is I can't set the fr开发者_Python百科ame of subviews correctly.

[m_objMainTableView setFrame:CGRectMake(40, 330, 365, 700)];
m_objMainTableView.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin);

The tableview goes out of superview only a small portion is visible. But After I comment the autoresizingMask (second line) the tableview displayed in original frame.

I created the same code in older xcode version as an iPad app it works fine. what I can do?

thanks in advance....

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号