然后将该Button添加到BarButtonItem
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithCustomView:customButton];