摘要:
iOS面试知识点(1)Java垃圾回收机制和ARC回收机制的区别? ARC自动引用计数(automatic reference counting),当你在编译程序时提供自动管理内存的功能,它会为程序自动加入内存的控制代码,控制独享声明周期。这样一来,就可以简化内存管理步骤。不过支持的版本是在i... 阅读全文
摘要:
1.统计ios开发代码,包括头文件的,终端命令进入项目目录下,命令如下find . -name "*.m" -or -name "*.h" -or -name "*.xib" -or -name "*.c" |xargs wc -l 列出每个文件的行数find . -name "*.m" -or -... 阅读全文
摘要:
xp 需要密码设置 run -> control userpasswords2 阅读全文
摘要:
1.chmod u+x test.sh2.hash bang 阅读全文
摘要:
sudo gem update --systemsudo gem install cocoapodspod setuppod --version 阅读全文
摘要:
#pragma mark -#pragma mark - 缩放处理+ (UIImage *)scaleImage:(UIImage *)image withScale:(float)scale{ UIGraphicsBeginImageContext(CGSizeMake(image.size.width * scale, image.size.height * scale)); [image drawInRect:CGRectMake(0, 0, image.size.width * scale, image.size.height * scale)]; UIIma... 阅读全文
摘要:
http://stackoverflow.com/questions/21474536/podfile-gives-an-error-on-installA bug was found in libgit2 and they had to execute a force push on the specs repo. This is what broke everyone's CocoaPods setup.You can find the official post about this issue on the CocoaPods blog :http://blog.cocoapo 阅读全文
摘要:
1. Terms and conditions(法律与条款)1.1As a developer of applications for the App Store you are bound by the terms of theProgram License Agreement(PLA), Human Interface Guidelines (HIG), and any other licenses or contracts between you and Apple. The following rules and examples are intended to assist you 阅读全文
摘要:
//// UIView+Borders.h//// Created by Aaron Ng on 12/28/13.// Copyright (c) 2013 Delve. All rights reserved.//#import @interface UIView (Borders)/* Create your borders and assign them to a property on a view when you can via the create methods when possible. Otherwise you might end up with multipl... 阅读全文