ios - 没有 UITabBarController 的 UITabBarItem

标签 ios objective-c action tabbar

如何在 UITableViewController 中实现 UITabBarItem?

如何实现 TabBar 项的操作(单击)- 使用方法的收藏夹?

这是我的tableviewcontroller.h

@interface bibliotecaViewFinale : UITableViewController
@property (strong, nonatomic) IBOutlet UITabBarItem *myTabBar;
@property (strong, nonatomic)Aule_Biblioteche *aulebib;
@property (strong, nonatomic) IBOutlet UILabel *label_info;
@property (nonatomic,strong) NSArray *infobib;
@end

我应该在 .m 中写什么?

最佳答案

不确定您到底想要实现什么,但是如果您需要在选项卡栏 Controller 中使用 TableView ( Controller ),您应该使用默认值或编写自定义选项卡栏 Controller 并将 tvc 作为子项。

如果你只需要一个看起来像标签栏项目的按钮,你仍然应该编写一个带有 TableView 作为 subview 的自定义 View 。

关于ios - 没有 UITabBarController 的 UITabBarItem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21439048/

相关文章:

iphone - CAGradientLayer,无法很好地调整大小,旋转时撕裂

objective-c - 在Objective-C中找到另一个不区分大小写的字符串

testing - 如何在 UFT 的测试中重新安排 Action 的执行?

javascript - 通过 javascript 发送 Rails PUT 请求

ios - 在 UIPageViewControl 中的 View Controller 之间创建分隔符

iOS 网络应用主体颜色

ios - 如何删除tableview的单元格?

c++ - 为什么 extern "C"只在要包含的文件内部工作,而不是在 #include 指令周围工作

iphone - 如何在不知道键的情况下迭代字典,同时获取键和对象?

android - 在 Android 应用程序中集成谷歌助手