简体   繁体   English

UITabBar获取所选项目

[英]UITabBar get selected item

从iPhone / iPad应用程序的UITabBar中选择项目时,如何捕捉事件?

The UITabBar has a delegate property which you can use. UITabBar具有可以使用的委托属性。 Create a class that implements the UITabBarDelegate and the method: 创建一个实现UITabBarDelegate和方法的类:

– tabBar:didSelectItem: 

will do the trick 会成功的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM