2012-06-12 120 views
1

我正在開發iPad應用程序,並希望創建像iPad一樣的設置UI,並具有所有方向。如何以編程方式創建UI,如「設置UI」iPad?

也就是說,Left是所選設置選項的設置列表(常規,郵件,Wifi,視頻等)和右側詳細信息。以下是圖像:

Portrait Mode

Landscape Mode

+0

[你嘗試過什麼?](http://whathaveyoutried.com) –

+0

我沒有嘗試過任何東西。 Becoz我不知道如何開始。 – iDilip

+0

那麼你爲什麼不從「HIG」中的[iOS的UI元素]開始閱讀(http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/UIElementGuidelines/ULElementGuidelines html的#// apple_ref/DOC/UID/TP40006556-CH13-SW1)。 –

回答

0
UIView *view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame]; 
[view setAutoresizingMask:UIViewAutoresizingFlexibleHeig ht|UIViewAutoresizingFlexibleWidth]; 
[view setBackgroundColor:[UIColor blueColor]]; 

後創建的UIView添加控件到這個UIView的..

相關問題