【发布时间】:2017-01-20 06:31:18
【问题描述】:
我正在使用 XCode 8.1 和语言目标 c 。我在NavigationBar 上使用SearchBar。
当我打开SearchBar 并单击以在SearchBar 中写入内容时,XCode 控制台中会出现警告。
我们如何解决这个问题。 请帮忙。
我在 viewDidLoad 中以这种方式添加了 uisearchbar
- (void)viewDidLoad {
[super viewDidLoad];
UISearchBar * searchBar=[[UISearchBar alloc]init];
searchBar.delegate=self;
[searchBar sizeToFit];
searchBar.placeholder = @"Search";
searchBar.userInteractionEnabled=YES;
[searchBar becomeFirstResponder];
self.definesPresentationContext = YES;
self.navigationItem.titleView=searchBar;
}
警告 ::::
项目名称 [MC] 系统组容器 systemgroup.com.apple.configurationprofiles 路径是 /Users/online/Library/Developer/CoreSimulator/Devices/SOME NUMBERS/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 项目名称 [MC] 从私人有效用户设置中读取。
【问题讨论】:
-
请参考以下类似问题:stackoverflow.com/questions/40024316/…
标签: objective-c uisearchbar ios10 xcode8.1