美文网首页
适配 iOS13

适配 iOS13

作者: jsone | 来源:发表于2019-10-31 16:39 被阅读0次

1、深夜模式
如果app不支持深夜模式,可以在info.plist添加UIUserInterfaceStyle,设置值为Light

<key>UIUserInterfaceStyle</key>
 <string>Light</string>
WX20191118-202430@2x.png

深夜模式:


适配 iOS13
适配 iOS13

正常模式:


适配 iOS13
适配 iOS13

2、模态视图转场动画风格默认为新增的卡片式动画,modalPresentationStyle的默认值为
UIModalPresentationAutomatic
如果要使用原来的全屏模态动画需要设置modalPresentationStyle的值为UIModalPresentationFullScreen

UIViewController *vc = [[UIViewController alloc] init];
vc.modalPresentationStyle = UIModalPresentationFullScreen;
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:vc];
nc.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:nc animated:YES completion:nil];

3、设置UITabBarItem样式

if(@available(iOS 13.0, *))
    {
        [[UITabBar appearance] setTintColor:[UIColor orangeColor]];
        [[UITabBar appearance] setUnselectedItemTintColor:[UIColor grayColor]];
    }
    else
    {
        [[UITabBarItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor grayColor],} forState:UIControlStateNormal];
        [[UITabBarItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor orangeColor]} forState:UIControlStateSelected];
    }

4、启动图片展示弃用LaunchImage,只能用LaunchScreen

5、UISearchBar开放输入框属性searchTextField,可以直接获取到输入框的样式

UITextField *textfield = [searchBar valueForKey:@"searchField"];
if(@available(iOS 13.0, *))
{
    textfield = searchBar.searchTextField;
}
else
{
    UIImageView *backgroundView = textfield.subviews.firstObject;
        
}

6、正式弃用UIWebView,只能WKWebView的使用

7、弃用valueForKey

相关文章

  • iOS13 适配问题 看这一篇就够了

    技术参考: apple login IOS13适配-详细 iOS 13 适配(持续更新中) iOS13适配 掘金 ...

  • iOS 13适配

    技术参考: apple login IOS13适配-详细 iOS 13 适配(持续更新中) iOS13适配 掘金 ...

  • 暗黑模式开发

    iOS13暗黑模式适配(项目开发版) iOS 13 DarkMode 暗黑模式 IOS 暗黑模式适配---基础适配

  • iOS13适配更新总结

    前言: iOS13的API的变动和适配问题,我从新特性适配、API 适配、方法弃用、工程适配、SDK 适配、其他问...

  • iOS13适配研究

    iOS13今年秋季会发布,最近深入研究了下公司APP适配iOS13的注意点,适配如下。 1.由于Xcode10移除...

  • iOS13适配

    参考: iOS13 适配踩坑 - 持续更新 iOS 13 适配要点总结 iOS 13 适配要点总结 1、prese...

  • iOS13适配(更新中)

    对于iOS13适配汇总以及遇到的问题注意:以下适配内容,必须适配的会以"必须"标出 1. Dark Model(必...

  • 关于WRNavigationBar iOS12、iOS13导航栏

    集成WRNavigationBar 适配iOS12 iOS13导航栏问题 在修复iOS13下在iPhone11机型...

  • 关于WRNavigationBar iOS12、iOS13导航栏

    集成WRNavigationBar 适配iOS12 iOS13导航栏问题 在修复iOS13下在iPhone11机型...

  • 2019--09iOS13适配

    iOS13适配iOS13更新后对Ai定损、一车一件项目进行适配 做了一下调查 1 2 3 4 5 6 目前调研的只...

网友评论

      本文标题:适配 iOS13

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