最近接触了一个international的项目, 用到Google地图, 在此稍微总结一下, 方便以后使用;
一. 准备工作
开发Google地图当然离不开翻墙了, 先分享几个好用的免费翻墙软件:
1.软件:
lantern
(For Window, Mac, Android, Ubuntu)
LetsVPN(appStore直接下载)
(For iOS)
Just an iOS learner
最近接触了一个international的项目, 用到Google地图, 在此稍微总结一下, 方便以后使用;
开发Google地图当然离不开翻墙了, 先分享几个好用的免费翻墙软件:
lantern
(For Window, Mac, Android, Ubuntu)
LetsVPN(appStore直接下载)
(For iOS)
基本的适配方法就不做介绍了, 👇主要介绍一些个人认为的SDAutoLayout适配亮点;
1.1 label设置最大宽度与行数
testLabel设置最大宽度与行数:
关于tableView的性能优化问题一直都是iOS开发者必备的一项优化技能, 可以好不夸张的说, app里面半数以上的页面都需要用到tableView; 对于它的优化网友也总结的非常详细, 鄙人就不详细解释了, 附个链接:
关于tableview的优化
为了提升用户体验, 在界面中加入一个设计良好的界面动画成为app设计的潮流. 之前听有人说过专业的界面动画是要有设计师、工程师、程序员、平面动画师等组成, 想想这是一个多大的任务量啊. 而且里面的各种逻辑处理, 复杂一些的动画, 一般人几乎是望其项背;
但有了Lottie之后, 就大大降低了开发者的难度. 我们可以直接把Lottie的动画文件导入, 设置一下参数, 就可以使用这个动画了. 为了满足大家的好奇心, 先附几个简单的实例:
自从去年6月1号Apple明文规定所有开发者提交新版本都必须支持IPV6-Only的网络,估计很多iOS开发者都遇到由于IPV6网络不支持造成的审核被拒的情况, 我被坑的不轻啊, 下面就来分析一下IPV6问题如何解决。
首先附一个审核被拒的原文:
Guideline 2.1 - Performance - App Completeness
We discovered one or more bugs in your app when reviewed on iPad running iOS 10.3.2 on Wi-Fi connected to an IPv6 network.
Specifically, the app launched to a blank page.
Please see attached screenshots for details.Next Steps
To resolve this issue, please run your app on a device while connected to an IPv6 network (all apps must support IPv6) to identify any issues, then revise and resubmit your app for review.
If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.
For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce the issue. For updates, install the new version as an update to the previous version, then follow the steps to reproduce the issue.