2012-07-16 17 views
0

我是iOS应用开发的新手。我想创建与iPhoto应用程序中底部工具行相似的UI。 任何教程或提示将非常有帮助。 Click this link to see UI of iPhoto app. 上面的图像显示底部的工具容器。iOS用户界面 - 类似于iPhoto底栏UI

谢谢。

+0

有一个WWDC会话视频,他们解释了他们如何设计iPhoto for iOS应用程序。为什么不从那里开始? – 2012-07-16 10:27:39

+0

@constantine,你是指屏幕左侧或右侧的控件? – 2012-07-16 10:58:07

回答

1

你可以使用普通的UIToolbar。 这里是添加UISlider到工具栏的教程:http://eureka.ykyuen.info/2010/06/09/iphone-adding-uislider-to-uitoolbar/

// Initialize 
aSlider = [[UISlider alloc] init]; 
UIBarButtonItem *sliderAsToolbarItem = [[UIBarButtonItem alloc] 
initWithCustomView:aSlider]; 
// Set the width of aSlider 
[sliderAsToolbarItem setWidth:250.0]; 

// Add the items to the toolbar 
[toolbar setItems:[NSArray arrayWithObjects:sliderAsToolbarItem, nil]]; 

如果你搜索定制UIToolbar你得到吨的结果与教程。

在这里你可以找到一个自定义UITabbar:http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/

或者你也可以使用带有按钮的视图工具栏或的TabBar的情况下,并将其设置为底部。

+0

@all,感谢您的及时回复。 – constantine 2012-07-16 11:33:23

+0

是的我很喜欢所提供的代码片段,即将项目添加到工具栏。在这里,我希望这些控件能像Windows中的功能区一样工作。当我按下左侧控件中的任何一个按钮时,整组工具都会在右侧进行更改,就像功能区中的选项卡一样。 – constantine 2012-07-16 11:41:47

+0

@ MDT-我指的是两个控件,同时在行动。 – constantine 2012-07-16 11:42:23