Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios7 iOS 7中的UIBarButtonItem未正确显示_Ios7_Uibarbuttonitem - Fatal编程技术网

Ios7 iOS 7中的UIBarButtonItem未正确显示

Ios7 iOS 7中的UIBarButtonItem未正确显示,ios7,uibarbuttonitem,Ios7,Uibarbuttonitem,我有这样的图像: 我将其用作leftBarButtonItem,在iOS 6中显示正确,但在iOS 7中显示如下: 下面是添加按钮的代码,我正在viewDidLoad中执行此操作 UIBarButtonItem * btn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Home.png"] style:UIBarButtonItemStylePlain target:self action:@selector(b

我有这样的图像:

我将其用作leftBarButtonItem,在iOS 6中显示正确,但在iOS 7中显示如下:

下面是添加按钮的代码,我正在viewDidLoad中执行此操作

UIBarButtonItem * btn = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Home.png"] style:UIBarButtonItemStylePlain target:self action:@selector(btHomeTouched:)];
self.navigationItem.leftBarButtonItem = btn;

我基本上是想让我的UITableViewController看起来像在iOS 6中一样。

可能是重复的是,重复的解决方案有效!!