我们如何将UIBarButtonItem添加到UITabBarController?
leftMenuBarButtonItem = UIBarButtonItem();
leftMenuBarButtonItem.image = UIImage(named: "menuIcon");
leftMenuBarButtonItem.target = self;
leftMenuBarButtonItem.action = "leftMenuBarButtonItemClicked:";
self.navigationItem.setLeftBarButtonItem(leftMenuBarButtonItem, animated: true);
上述代码不起作用。任何想法?