示例代码: 1.首次运行打印出来的消息是: 2016-06-30 17:17:19.610 测试状态改变[53450:338456] application:didFinishLaunchingWithOptions: 2016-06-30 17:17:19.613 测试状态改变[53450:338 ...
分类:
移动开发 时间:
2016-06-30 18:19:53
阅读次数:
146
Alt+回车 导入包,自动修正Ctrl+N 查找类Ctrl+Shift+N 查找文件Ctrl+Alt+L 格式化代码Ctrl+Alt+O 优化导入的类和包Alt+Insert 生成代码(如get,set方法,构造函数等)Ctrl+E或者Alt+Shift+C 最近更改的代码Ctrl+R 替换文本Ct ...
分类:
移动开发 时间:
2016-06-30 18:19:04
阅读次数:
241
什么时候使用Service: @、任何与用户界面无关的操作,可移到后台线程,然后由一个Service来控制这个线程。 服务类型: @、First is the one that performs work for the application independent of the user’s i ...
分类:
移动开发 时间:
2016-06-30 18:18:14
阅读次数:
258
#define IS_IOS8_0 ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.0) #define WIDTH [UIScreen mainScreen].bounds.size.width #define HEIGHT [ ...
分类:
移动开发 时间:
2016-06-30 18:17:10
阅读次数:
156
// 删除对应数据 // for (OrderModel *order in self.OrderList) { // // NSLog(@"%ld %ld",order.tagBut,(long)btn.tag); // // if (order.tagBut==btn.tag) { // /// ...
分类:
移动开发 时间:
2016-06-30 18:13:05
阅读次数:
166
转自:https://robots.thoughtbot.com/creating-your-first-ios-framework If you’ve ever tried to create your own iOS framework, you know that it’s not for t ...
分类:
移动开发 时间:
2016-06-30 18:15:12
阅读次数:
343
豆绿色的RGB值:#C7EDCC 1.打开Android Studio——>Ctrl+Alt+s 或者 File——>Settings 2.在弹窗中选中“Colors&Fonts”——> 点击Save as,自定义一个主题 ...
分类:
移动开发 时间:
2016-06-30 18:12:01
阅读次数:
157
Ref:http://www.iosicontemplate.com Ref:https://appicontemplate.com ...
分类:
移动开发 时间:
2016-06-30 18:10:11
阅读次数:
325
1、设置行宽 就是那条右标准线的位置:Setting-->Editor-->Code Style,右侧找到Right margin (columns), 默认值是100,公司的显示器分辨率是1680*1050,设置成120比较合适 2、设置格式化的时候自动断行到行宽位置 这样就不用往右拖看代码了:S ...
分类:
移动开发 时间:
2016-06-30 18:09:29
阅读次数:
453
今天看到cocopods都更新到1.0.1了,之前什么时候更新到的1.0都没发现,刚刚更新一下之后,立马出现了一大堆的错误。 如果没有更新的话,建议不要更新!!!书写麻烦了! 现在记录如何一步一步去除错误的: 1、pod --version 查看版本号,现在如果看小于1.0.1 输入 pod rep ...
分类:
移动开发 时间:
2016-06-30 18:10:58
阅读次数:
316
//文字转化成图片 -(UIImage *)imageFromText:(NSArray*)arrContent withFont:(CGFloat)fontSize withTextColor:(UIColor *)textColor withBgImage:(UIImage *)bgImage ...
分类:
移动开发 时间:
2016-06-30 18:05:39
阅读次数:
158
以下所有测试最后必须在真机上完整的执行1、安装、卸载测试 在真机上的以及通过91等第三方的安装与卸载 安装在手机上还是sd卡上 2、启动app测试3、升级测试 数字签名、升级覆盖安装、下载后手动覆盖安装、跨版本升级、升级后可以正常使用。 覆盖安装要确保数据库有字段更新的话,能正常更新,否则就容易导致 ...
分类:
移动开发 时间:
2016-06-30 18:02:59
阅读次数:
166
多屏幕 @、Android 4.2 开始支持多屏幕。 @、举例: public class SecondDisplayDemo extends Activity { private Presentation mPresentation; @Override protected void onCrea ...
分类:
移动开发 时间:
2016-06-30 17:55:12
阅读次数:
293
1、 Android Studio 主题的设置: 设置Android Studio 自带的主题 设置第三方主题 2、 Android Studio 字体的设置 设置左面包名的字体大小 设置右面代码编辑界面字体大小 1.1 设置Android Studio 自带的主题及包名字体大小: 1.2 导入第三 ...
分类:
移动开发 时间:
2016-06-30 17:54:51
阅读次数:
187
参考:http://wiki.jikexueyuan.com/project/react-native/GettingStarted.html1. 安装nvm参考:https://github.com/creationix/nvm#installationwget -qO- https://raw. ...
分类:
移动开发 时间:
2016-06-30 17:55:37
阅读次数:
229
SVN使用笔记(比较详细) http://www.cnblogs.com/merray/p/4182380.html 删除项目 http://jingyan.baidu.com/article/c74d6000813b2b0f6b595d48.html TotoiseSVN的基本使用方法 http: ...
分类:
移动开发 时间:
2016-06-30 17:55:40
阅读次数:
179