记录下xcode11/iOS13的一些问题

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{ //原先的代码 }

链接:记录xcode11 ios13 踩坑过程 - 掘金


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:@""];

    }

、、、未完待续

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。