在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];