Iphone 开发-> 在Tab Bar中使用Navigation
来源:互联网 发布:隐藏手机号码软件 编辑:程序博客网 时间:2024/05/17 01:23
Key concepts are:
1) in Interface Builder view the MainWindow.xib file in the list view so you can see the hierarchy (as in image IB MainWindow_xib.jpeg) Select items from this window to modify them in IB Attributes inspector and IB Identity inspector. (other 2 images)
2) Use the Attributes inspector to assign nib files to the correct places.
3) Use the Identity inspector to assign Objective-C class to the correct places.
To create the basic MainWindow.xib hierarchy using IB do as follows...
1) Drag a "Tab Bar Controller" from the library to the MainWindow.xib list.
2) Select this Tab Bar Controller in the MainWindow.xib list and go to the Attributes Inspector (Command-1), now in the View Controllers subwindow change the Class from "View Controller" to "Navigation Controller" for whichever items you wish.
3) Expand the "Tab Bar Controller" in the MainWindow.xib window in IB. (option-click arrow to expand all)
4) Leave the Navigation Controller as is
5) Select the View Controller and change its Class to your class and its Nib to use the corresponding nib. By using the Attributes inspector (Command-1) for the nib file and the Identity Inspector for the Class (Command-4)
6) Be sure to hookup action buttons to the File's Owner.
7) Be sure to compile and test along the way so if you get off track you can backtrack easily.
Good luck! I hope this community software emails me when the thread changes so I can field any questions you may have. Feel free to ask.
Scott
1) in Interface Builder view the MainWindow.xib file in the list view so you can see the hierarchy (as in image IB MainWindow_xib.jpeg) Select items from this window to modify them in IB Attributes inspector and IB Identity inspector. (other 2 images)
2) Use the Attributes inspector to assign nib files to the correct places.
3) Use the Identity inspector to assign Objective-C class to the correct places.
To create the basic MainWindow.xib hierarchy using IB do as follows...
1) Drag a "Tab Bar Controller" from the library to the MainWindow.xib list.
2) Select this Tab Bar Controller in the MainWindow.xib list and go to the Attributes Inspector (Command-1), now in the View Controllers subwindow change the Class from "View Controller" to "Navigation Controller" for whichever items you wish.
3) Expand the "Tab Bar Controller" in the MainWindow.xib window in IB. (option-click arrow to expand all)
4) Leave the Navigation Controller as is
5) Select the View Controller and change its Class to your class and its Nib to use the corresponding nib. By using the Attributes inspector (Command-1) for the nib file and the Identity Inspector for the Class (Command-4)
6) Be sure to hookup action buttons to the File's Owner.
7) Be sure to compile and test along the way so if you get off track you can backtrack easily.
Good luck! I hope this community software emails me when the thread changes so I can field any questions you may have. Feel free to ask.
Scott
2 example:
注意 :当然tab bar 和navigation都被拖到MainWindow.xib后,其中的关键点有两个:1是将tab bar的某元素的class设置 为navigation Controller,2是需要在列表视图中设置藏在tab bar下面的navigation Controller到ROOT视图.
- Iphone 开发-> 在Tab Bar中使用Navigation
- IPHONE开发 在VIEW中点击按钮如何转入TAB BAR VIEW
- iphone开发 Tab Bar应用程序中添加NavigationController
- (四)swifit 中Navigation Bar 和 Tab Bar 区分
- navigation+tab bar
- 在iOS开发中如何使Status Bar的颜色跟随Navigation Bar的颜色?
- Navigation Bar Toolbal 和 Tab Bar区别
- IPHONE应用开发 - Tab Bar Control(标签栏)使用的简单介绍
- 在macOS开发中使用Touch Bar
- 在 KitKat以上版本中使用Translucent将Navigation Bar透明化
- 在 KitKat以上版本中使用Translucent将Navigation Bar透明化
- 在 KitKat以上版本中使用Translucent将Navigation Bar透明化
- 开发支持iPhone横屏的Tab Bar程序
- 开发支持iPhone横屏的Tab Bar程序
- Navigation + Tab Bar 常用组合框架
- 如何更改 navigation bar 或者 tab bar 的背景图片
- 如何更改 navigation bar 或者 tab bar 的背景图片
- iOS StoryBoard中使用navigation bar的问题
- Sicily 1089.Farey Sequence[线性筛法求素数]
- 文件路径分析File::Basename[perl]
- WO
- 数据/配置 的存储方式 Json篇 以JsonCpp库使用为例
- 别说我没说过喜欢你啊,毛毛虫。
- Iphone 开发-> 在Tab Bar中使用Navigation
- perl 引用的例子
- 不知道好用不 啊
- 123
- 各种“网络地球仪”
- 数据挖掘的类型定义
- 急急急!!!哪位来帮忙啊!!!!!!
- 进程间的多线程同步事件控制方法
- Thread