美文网首页
iOS13+Xcode11适配

iOS13+Xcode11适配

作者: 守护地中海的花 | 来源:发表于2019-09-29 15:30 被阅读0次

苹果发病了 所以适配开始 参考iOS 13 适配iOS13 新特性简介iOS13 暗黑模式(Dark Mode)适配之OC版iOS 13 适配 ING...iOS 13 适配(持续更新)iOS 13 适配总结iOS 13 以及深色模式(黑暗模式Dark Mode)的适配

KVC访问私有属性崩溃

  • textField的placeholder的字体颜色设置---改成可变富文本
  • 把项目中的KVC访问都去掉吧 如UIAlertAction

presentViewController

  • modalPresentationStyle:是全屏 必须加上
  • modalTransitionStyle:UIModalTransitionStylePartialCurl 翻页效果动画有问题不能用了

TextField、TextView、UIButton、UI label 字体颜色需要设置

NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc]initWithString:@""];
placeholder.font = [UIFont systemFontOfSize:14*ADAPTER_WIDTH weight:UIFontWeightRegular];
placeholder.color = kColor160;
tf.attributedPlaceholder = placeholder;


if (itemModel != nil && itemModel.placeholder != nil) {
    NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc]initWithString:itemModel.placeholder];
    placeholder.font = [UIFont systemFontOfSize:14*ADAPTER_WIDTH weight:UIFontWeightRegular];
    placeholder.color = kColor160;
    self.textField.attributedPlaceholder = placeholder;
}

UITableViewCell 颜色 UICollectionView不需要管 UITableViewHeaderFooterView必须设置contentView的背景颜色

  • 给定默认颜色
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

BaseUITableViewCell 制作一个basecell 如果不写赋值 则默认白色
#import "BaseUITableViewCell.h"

禁止黑色模式如果不想适配的话

A39F98256B6657396A4976D7146505B5.jpg
F4F3ABB722B9186FF3E6CC701E0ECD7D.jpg

颜色

iOS13.png

相关文章

  • iOS13+Xcode11适配

    苹果发病了 所以适配开始 参考iOS 13 适配[https://www.jianshu.com/p/a0cc0f...

  • 适配iOS11,适配iPhoneX,适配安全区的几个文章和宏

    适配iOS11,适配iPhoneX,适配安全区的几个文章和宏 适配iOS11,适配iPhoneX,适配安全区的几个...

  • App适配

    布局适配 字体适配 软键盘适配

  • 版本适配

    屏幕适配 代码适配 Masonry UIView+AutoLayout 可视化适配 autoLayout 系统适配...

  • Android屏幕适配

    px适配; 百分比适配; 修改dp适配; 屏幕适配 布局适配使用wrap_content,match_parent...

  • 屏幕适配

    适配 什么是适配?适应、兼容各种不同的情况 iOS开发中的适配?系统适配针对不同版本的操作系统进行适配屏幕适配针对...

  • iOS 适配器模式

    适配器模式创建适配协议,创建抽象适配器类,创建类适配器/对象适配器。 应用,适用场景电源适配器,普通充电器(类适配...

  • iPhone X 适配 ( iOS 11适配 ) 打理刘海

    iPhone X 适配 ( iOS 11适配 ) 打理刘海 iPhone X 适配 ( iOS 11适配 ) 打理刘海

  • iOS设计模式 (五) 适配器模式

    适配器模式 iOS中的适配器模式,主要由目标协议,适配者,适配器三部分组成. 适配器模式分类 类适配器: 适配器是...

  • 设计模式-适配器

    适配器模式,目的是为了适配补偿,对于适配器模式,我们要学习的两种方式是类适配器和对象适配器。 类适配器 类适配器是...

网友评论

      本文标题:iOS13+Xcode11适配

      本文链接:https://www.haomeiwen.com/subject/fjyfpctx.html