美文网首页
iOS13 和 Xcode 11 适配

iOS13 和 Xcode 11 适配

作者: sky1and2sea | 来源:发表于2019-09-25 15:26 被阅读0次
  1. 模态页面弹出 默认样式 xcode11
/*
 Defines the presentation style that will be used for this view controller when it is presented modally. Set this property on the view controller to be presented, not the presenter.
 If this property has been set to UIModalPresentationAutomatic, reading it will always return a concrete presentation style. By default UIViewController resolves UIModalPresentationAutomatic to UIModalPresentationPageSheet, but system-provided subclasses may resolve UIModalPresentationAutomatic to other concrete presentation styles. Participation in the resolution of UIModalPresentationAutomatic is reserved for system-provided view controllers.
 Defaults to UIModalPresentationAutomatic on iOS starting in iOS 13.0, and UIModalPresentationFullScreen on previous versions. Defaults to UIModalPresentationFullScreen on all other platforms.
 */
@property(nonatomic,assign) UIModalPresentationStyle modalPresentationStyle API_AVAILABLE(ios(3.2));
  1. webwview 桥接线程问题,主线程调用桥接回调

void _WebThreadLock(), 0x116cc0030: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...

3.不能在子线程创建 uiviewcontroller alloc

  1. UIModalTransitionStylePartialCurl 使用异常
reason: 'Application tried to present UIModalTransitionStylePartialCurl to or from non-fullscreen view controller <ConversationListController:

https://developer.apple.com/documentation/uikit/uimodaltransitionstyle/partialcurl

5. UISearchBar 搜索栏私有属性访问


'Access to UISearchBar's _searchField ivar is prohibited. This is an application bug'
            UITextField *searchField ;

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000

            if (@available(iOS 13.0, *)) {
                searchField = self.searchBar.searchTextField;
            } else {
                searchField = [self.searchBar valueForKey:@"_searchField"];
            }
#else

            searchField = [self.searchBar valueForKey:@"_searchField"];

#endif

6.蓝牙权限


This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription

相关文章

  • Xcode11探索之旅

    在更新到Xcode11、iOS13之后,对原有项目进行适配各种操作。最近需求一个全新的APP,才发现Xcode11...

  • iOS之iOS13适配总结

    前言 随便iOS开发开始更新变成Xcode11,适配iOS13变成了现在的当务之急。 新特性适配 一、新添加的Da...

  • CocoPods更换Ruby源及升级版本

    升级xcode11,项目适配iOS13,MJExtension报错,github上提示需要更新最新版本,使用终端 ...

  • xcode11创建新项目

    1,如果项目不需要适配iOS13以下的机型。xcode11之后,入口放在了SceneDelegate里面。直接使用...

  • iOS13适配-1

    iOS13适配分两种形式1、手机升级系统,XCode用10.1版本2、手机升级系统,XCode用11版本 因为项目...

  • iOS13 和 Xcode 11 适配

    模态页面弹出 默认样式 xcode11 webwview 桥接线程问题,主线程调用桥接回调 3.不能在子线程创建 ...

  • ios13适配

    iOS13适配 1.私有KVC 在Xcode10上编译不会有问题,但是在Xcode11上编译的会崩溃。并且- (v...

  • xcode11遇到的坑

    苹果出了iOS13,为了适配升级了xcode11,但是升级成功后模拟器运行就报错: Library not fou...

  • iOS13适配研究

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

  • iOS13 persent 适配

    由于升级Xcode适配iOS13,导致modalPresentationStyle 默认值变成了UIModalPr...

网友评论

      本文标题:iOS13 和 Xcode 11 适配

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