【发布时间】:2018-01-12 17:54:14
【问题描述】:
我正在介绍 CNContactPickerViewController(强烈引用 ivar):
contactsViewController = [[CNContactPickerViewController alloc] init];
contactsViewController.delegate = self;
[self presentViewController:contactsViewController animated:YES completion:nil];
但是,结果如下:
遇到问题后,我尝试更改搜索栏的外观(不确定我应该设置什么,只是尝试):[[UISearchBar appearanceWhenContainedInInstancesOfClasses:@[[CNContactPickerViewController class]]] setBarTintColor:[UIColor redColor]]; 但它没有做任何事情。
为什么会发生这种情况,我该如何解决?
更新:我在联系人视图控制器上尝试了以下各种组合:
automaticallyAdjustsScrollViewInsetsdefinesPresentationContextedgesForExtendedLayoutmodalPresentationStylemodalPresentationCapturesStatusBarAppearance
然而,什么都没有改变。它们都产生相同的结果。
【问题讨论】:
-
你有没有得到正确的答案?我也遇到同样的问题。 :(
-
@venturidoo 不,设计已更改,我转而从头开始实施新版本。
标签: cocoa-touch uiviewcontroller cncontactpicker