Android 7.0 行为变更之后台优化

Android 7.0 对系统和API做了一些变更。其中关于隐式广播的移除见官方文档链接:Project Svelte:后台优化,根据官方文档介绍,该变更主要是为了帮助优化内存使用和电量消耗,因为隐式广播会在后台频繁启动已注册侦听这些广播的应用,删除这些广播可以显著提升设备性能和用户体验。

Read more   2017/06/13 posted in  Android

Mac Android 项目目录下执行 ./gradlew clean 提示 Permission denied

Mac 环境下 Android Studio 创建的 Android 项目,在项目目录下执行 ./gradlew clean,提示 Permission denied,看到这个提示,自然想到的是 sudo 执行,然而 sudo 执行并不能解决问题,反而会提示command not found。

Read more   2017/04/10 posted in  Android

模拟器收不到UILocalNotification本地通知

通知功能是iOS应用开发经常会碰到的需求,iOS应用的通知分为本地通知和远程通知(即消息推送),Apple develop官网的API Guides对通知的开发有详细的介绍。

Read more   2017/02/24 posted in  iOS

自定义 UIView 不响应 touchesBegan 事件

iOS 开发中会使用到自定义 UIView, 下面是我在学习过程中写的一个自定义 UIView.

Read more   2017/02/23 posted in  iOS

Application windows are expected to have a root view controller at the end of application launch

现阶段的iOS应用开发,我们必须在AppDelegate中设置self.window.rootViewController,但是在以前老版本的xcode中可以不设置,iOS应用也可以照常运行。

Read more   2017/02/22 posted in  iOS