【问题标题】:How to load xib on the UITabBarItem click in iPhone如何在 iPhone 中的 UITabBarItem 点击加载 xib
【发布时间】:2011-02-24 07:15:37
【问题描述】:

我制作了一个自定义工具栏并添加了一个 UITabBarItem。现在我想在该按钮单击时加载一个 xib。我该怎么做?

【问题讨论】:

标签: iphone


【解决方案1】:

对该 UITabBarItem 进行操作...并在此操作中提供您要加载的 xib 的名称..

-(IBAction)ButtonAction{

//eg:- is shown below   

FreeSetsViewController *viewController =[[FreeSetsViewController alloc] initWithNibName:@"FreeSetsViewController" bundle:nil];


[self.navigationController pushViewController: viewController animated: YES];
[viewController release];

//you will get the required XIB 
}

如果您仍然无法获得它,请从已经询问过的 How to load a Xib. 以及 Sam Dufel 分享给您的链接中寻求帮助

祝你好运!

【讨论】:

  • 你到底遇到了什么问题......你已经对按钮进行了操作??......然后你得到了什么?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-09-29
  • 1970-01-01
  • 1970-01-01
  • 2018-01-01
  • 2010-11-29
相关资源
最近更新 更多