我想在导航栏上添加两个按钮和一个图像视图。我写了下面的代码来添加图片,但它没有用。
UIView *customView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 44)];
UIImageView *logo=[[UIImageView alloc]init];
logo.image=[UIImage imageNamed:@"sdas.jpeg"];
[customView addSubview:logo];
self.navigationController.navigationItem.titleView=customView;