How do I set the navigation bar style on a modal iPad detail view? I have this:
SCArrayOfObjectsSection *section = [SCArrayOfObjectsSection sectionWithHeaderTitle:nil withItems: self.mySubscriptions withClassDefinition:subscriptionClass];
section.allowAddingItems = YES;
section.allowDeletingItems = YES;
section.addButtonItem = self.navigationItem.rightBarButtonItem;
section.detailViewModalPresentationStyle = UIModalPresentationFormSheet;
section.detailViewModal = YES;
[tableModel addSection:section];
and then this delegate call back:
-(void)tableViewModel:(SCTableViewModel *)tableViewModel detailViewWillAppearForSectionAtIndex:(NSUInteger)index withDetailTableViewModel:(SCTableViewModel *)detailTableViewModel {
DLog(@"Adding new subscription");
detailTableViewModel.delegate = self;
detailTableViewModel.viewController.navigationController.navigationBar.barStyle = UIBarStyleBlack;
detailTableViewModel.viewController.title = @"Add New Subscription";
[self setSubscriptionFooter: detailTableViewModel];
}
but this has no effect. The navigation bar appears to be completely transparent. The white title is hard to read and the buttons are dark blue.
Any ideas?
Thanks,
Frank