Ios 导航栏上的设置图标

Ios 导航栏上的设置图标,ios,objective-c,Ios,Objective C,我试图找到一种方法,将左角导航按钮设置为嵌入导航控制器的视图控制器上的设置装置。我读到它可能是用Unicode序列完成的。有人知道怎么做吗?或者我会更好地使用图标吗?为您的设置图标找到一个图像,使其为40x40px(视网膜为80x80@2x),并放置一个按钮项: UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"settings"] style:UIBarButtonIt

我试图找到一种方法,将左角导航按钮设置为嵌入导航控制器的视图控制器上的设置装置。我读到它可能是用Unicode序列完成的。有人知道怎么做吗?或者我会更好地使用图标吗?

为您的设置图标找到一个图像,使其为40x40px(视网膜为80x80@2x),并放置一个按钮项:

UIBarButtonItem *leftBtn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"settings"] style:UIBarButtonItemStyleBordered target:self action:@selector(yourSettingsMethod)];
self.navigationItem.leftBarButtonItem = leftBtn;