UIBarButtonSystemItem 信息和统计

UIBarButtonSystemItem Info and Statistics

我需要两个找不到的按钮:UINavigationBar 的信息按钮和统计按钮。有没有办法在不绘制它们的情况下找到代表相似事物的按钮?

希望对您有所帮助:

 //for info button using custom UIButton
  UIButton *btn = [UIButton buttonWithType:UIButtonTypeInfoDark];
  self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:btn];

对于统计信息,没有这样的默认按钮可用

Swift 3 / 4

let infoButton = UIButton(type: .infoDark)
infoButton.addTarget(self, action: #selector(navbarButtonPressed), for: .touchUpInside)
navigationItem.rightBarButtonItems?.append(UIBarButtonItem(customView: infoButton))