objective-c - iOS6及其以下兼容性问题
某草草
某草草 2017-05-02 09:23:24
0
1
551

是这样的,我们APP里用到谷歌地图sdk,但是谷歌地图sdk最低支持iOS7,现在集成后在iOS7及以上版本运行良好,但是在iOS7以下版本运行就crash,我把项目中与谷歌地图相关地方全部注释掉,仅留一个谷歌地图framework,但是还是一运行就crash,我在想有没有方法能够根据手机版系统iOS版本判断是否链接这个包呢?这个crash是发生在什么阶段的呢?

某草草
某草草

reply all(1)
Ty80

There are generally several methods for solving this problem:

  1. Continue to use this version of the SDK

    • Set the framework of your sdk to option

    • In the loading place, including the import and execution place, add judgment (if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)). For those below 7, use the system map SDK.

  2. Upgrade your App version to 7.0 (as far as the current situation is concerned, support from iOS7 is already OK).

  3. Use a lower version of the Google Maps SDK that supports iOS6 (this method is not good, lower versions are prone to various problems.)

  4. Use other map SDKs.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!