xcode11/iOS13的坑,算是做个笔记,感谢其他老哥!
1.iOS 13 多了一个新的枚举类型 UIModalPresentationAutomatic,并且是modalPresentationStyle的默认值。
UIModalPresentationAutomatic实际是表现是在 iOS 13的设备上被映射成UIModalPresentationPageSheet。
原文链接:https://blog.csdn.net/bitcser/article/details/100113549
2.UITableViewCell中cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator方框问题
用xcode11编译打包
检查项目是否有imageWithTint类似api,ios13新增imageWithTintapi,导致两者冲突
if(@available(iOS 13.0, *)) { UIImage *image = [[UIImage imageNamed:@""] imageWithTintColor:UIColor.redColor]; }else{ //原先的代码 }
3.如果使用蓝牙需要在infoplist添加Privacy - Media Library Usage Description
4.textFiled.keyboardType = UIKeyboardTypeNamePhonePad 无法输入汉字
5.推送的 deviceToken 获取到的格式发生变化
if(@available(iOS13.0, *)) {
if(![deviceTokenisKindOfClass:[NSDataclass]])return;
constunsigned*tokenBytes = [deviceTokenbytes];
token = [NSString stringWithFormat:@"%08x%08x%08x%08x%08x%08x%08x%08x",
ntohl(tokenBytes[0]),ntohl(tokenBytes[1]),ntohl(tokenBytes[2]),
ntohl(tokenBytes[3]),ntohl(tokenBytes[4]),ntohl(tokenBytes[5]),
ntohl(tokenBytes[6]),ntohl(tokenBytes[7])];
}else{
token =[[deviceTokendescription] stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"<>"]];
token =[[tokendescription] stringByReplacingOccurrencesOfString:@" " withString:@""];
}
、、、未完待续