首页 > 代码库 > ios导航栏又按钮添加图片后使其保持原色

ios导航栏又按钮添加图片后使其保持原色

UIBarButtonItem *rightBarItem = [[UIBarButtonItem alloc] initWithTitle:nil style:UIBarButtonItemStylePlain target:self action:@selector(addItemmmClick)];

    self.navigationItem.rightBarButtonItem = rightBarItem;

    [self.navigationItem.rightBarButtonItem setImage:[[UIImage imageNamed:@"nav_add"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];

ios导航栏又按钮添加图片后使其保持原色