美文网首页
调用系统自带的导航栏图片

调用系统自带的导航栏图片

作者: 哪有猫不吃鱼 | 来源:发表于2020-11-27 18:13 被阅读0次
UIBarButtonItem系统自带的图片

比如可能用到设置的:

设置按钮

//使用系统的gearshape图片
[UIImage systemImageNamed:@"gearshape"];

UIBarButtonItem *leftItem = [[UIBarButtonItem alloc] initWithImage:[UIImage systemImageNamed:@"gearshape"] style:UIBarButtonItemStylePlain target:self action:@selector(returnLastController)];

   //leftItem.tintColor = [UIColor whiteColor];///设置以后图片颜色跟随变化

    self.navigationItem.leftBarButtonItem = leftItem;

相关文章

网友评论

      本文标题:调用系统自带的导航栏图片

      本文链接:https://www.haomeiwen.com/subject/obtfwktx.html