在iOS 11导航项目的标题视图中,没有显示条形图项目(使用Xcode 9)

时间:2017-09-22 11:20:34

标签: ios objective-c xcode ios11

在iPad应用程序(Objective-c)中工作,该应用程序显示导航项目的标题视图,以前的iOS版本中的barbuttonitems。但它没有在iOS 11中显示(使用Xcode 9)。我使用的是xib而不是故事板。

self.editButton = [[UIBarButtonItem alloc] initWithTitle:@"Create Call" style:UIBarButtonItemStylePlain target:self action:@selector(accountView:)];

[self.editButton setTitleTextAttributes:attributes forState:UIControlStateNormal];

self.deleteCallButton = [[UIBarButtonItem alloc] initWithTitle:@"Delete" style:UIBarButtonItemStylePlain target:self action:@selector(deleteCall:)];

[self.deleteCallButton setTitleTextAttributes:attributes forState:UIControlStateNormal];

self.navigationItem.rightBarButtonItems = [NSArray arrayWithObjects:sliderBarItem, self.deleteCallButton, self.emptySeparatorButton1, self.editButton, self.emptySeparatorButton2, self.createOrderButton, nil];

0 个答案:

没有答案