1.使用AFNetworking,下载图片需要新增属性 @"application/octet-stream"
2.UISearchBar
新增searchTextField
[_searchBar setBackgroundImage:[UIImage new]];//设置空白背景
[_searchBar setTranslucent:YES];
if( @available(iOS 13.0, *) )
{
[_searchBar.searchTextField setFont:[UIFont boldSystemFontOfSize:14]];
[_searchBar.searchTextField performSelector:@selector(_clearBackgroundViews)];//iOS 13 以上设置空白背景
}
else
[[_searchBar valueForKey:@"_searchField"] setValue:[UIFont boldSystemFontOfSize:14] forKeyPath:@"_placeholderLabel.font"];
3.modalPresentStyle,现在的由于新的呈现方式,导致viewWillAppear
,viewWillDisappear
会出现不再次调用。改用全屏的呈现方式之后,之前的写在这种函数里边的代码能再次正确执行起来
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
UIViewController* vc = [segue destinationViewController];
vc.modalPresentationStyle = UIModalPresentationFullScreen;
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
4.现在出现 App installation failed. Could not inspect the application package
以及code object is not signed at all
后边的codesine问题,可以使用 --deep
添加在code sine other flag
里解决,但是最后打包的时候第一个问题依旧出现。所以出现codesine问题的代码,需要重新打包一偏。我的是opencv.framework 这个文件,是我很早前另一台电脑打包的。揣测重新生成个framwork才能解决这个问题
网友评论