1、iOS frame和Bounds 以及frame和bounds区别
2、
/// 异步存储(或更新)网站的共享密码。
NSString *server = @"com.jdjr.www";
SecAddSharedWebCredential((CFStringRef)server, (CFStringRef)_userName.text, (CFStringRef)_password.text, ^(CFErrorRef _Nullable error) {
if (error == nil) {
NSLog(@"存储新账号密码成功");
}else {
NSLog(@"发生错误:%@",error);
}
});
ios webView 加载HTML字符串清除格式
"<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'><meta name='apple-mobile-web-app-capable' content='yes'><meta name='apple-mobile-web-app-status-bar-style' content='black'><meta name='format-detection' content='telephone=no'><style type='text/css'>img{width:100%} p{font-size:0px} *{margin:0;padding:0; word-break: break-all;word-wrap: break-word;outline: 0;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}</style>"
向“文件APP”曝露Documents数据
iOS11 以后新增了一个“文件”APP,集中管理iOS上应用内创建的文件,以及各个云盘服务中保存的文件。在iOS工程info.plist中设置Application supports iTunes file sharing和Supports opening documents in place这两个选项为YES(默认为NO),其次你的budleID 应该是已经注册的,并且你的document里面有文件,就可以将该应用的沙盒路径Documents文件暴露在“文件”APP中。