打开终端,用cd命令 定位到工程所在的目录,然后调用以下命名即可把每个源代码文件行数及总数统计出来:
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l
其中,-name "*.m" 就表示扩展名为.m的文件。同时要统计java文件和xml文件的命令分别是:
find . "(" -name "*.java" ")" -print | xargs wc -l
find . "(" -name "*.xml" ")" -print | xargs wc -l
参考:http://blog.csdn.net/studyrecord/article/details/7633365
原文链接:http://blog.csdn.net/it_magician/article/details/8850414
2、关于 NSData 的数据类型(2进制,16进制之间)及深入剖析
1. NSData 与 NSString
NSData-> NSString
NSString
NSString->NSData
NSString
NSData
2.NSData 与 Byte
NSData-> Byte数组
NSString
NSData
Byte
for(int
printf("testByte = %d\n",testByte);
Byte数组-> NSData
Byte
NSData
Byte数组->16进制数
Byte
NSString
for(int
{
NSString
if([newHexStr
hexStr = [NSString
else
hexStr = [NSString
}
NSLog(@"bytes 的16进制数为:%@",hexStr);
16进制数->Byte数组
/ 将16进制数据转化成Byte 数组
NSString
int
Byte
for(int
{
int
unichar
int
if(hex_char1 >=
int_ch1 = (hex_char1-48)*16;
else
int_ch1 = (hex_char1-55)*16;
else
int_ch1 = (hex_char1-87)*16;
i++;
unichar
int
if(hex_char2 >=
int_ch2 = (hex_char2-48);
else
int_ch2 = hex_char2-55;
else
int_ch2 = hex_char2-87;
int_ch = int_ch1+int_ch2;
NSLog(@"int_ch=%d",int_ch);
bytes[j] = int_ch;
j++;
}
NSData
NSLog(@"newData=%@",newData);
3. NSData 与 UIImage
NSData->UIImage
UIImage
//例:从本地文件沙盒中取图片并转换为NSData
NSString
NSString
NSString
NSData
UIImage
UIImage-> NSData
NSData
http://w11h22j33.iteye.com/blog/1333521
ios排序算法总结:http://www.cnblogs.com/jy578154186/archive/2012/12/23/2830102.html
中文字符ASCLL码和NSString的相互转换:
http://www.2cto.com/kf/201309/243443.html
iOS的 APP 如何适应 iPhone 5s/6/6Plus 三种屏幕的尺寸?
http://www.tuicool.com/articles/yEFbE3
IOS NSPredicate:
http://www.cnblogs.com/thefeelingofsimple/archive/2013/01/31/2886915.html
xcode5制作静态库:
NSTimer用法:
http://www.cnblogs.com/smileEvday/archive/2012/12/21/NSTimer.html
生命周期dealloc使用:
http://blog.csdn.net/Arrui/article/details/6320695
ios开发的几种设计模式:
http://blog.csdn.net/liwei3gjob/article/details/8926862
TCP/IP,HTTP区别:
http://jingyan.baidu.com/article/08b6a591e07ecc14a80922f1.html
http://www.cnblogs.com/wendingding/p/3813466.html
UTF8编码转换工具:http://tool.fillseo.com/utf-8/
Ios官方推荐图标的大小:http://blog.sina.com.cn/s/blog_71715bf80101f24z.html
CornerStone配置SVN:http://www.tuicool.com/articles/n6fyq2
在线代码格式化:http://tool.oschina.net/codeformat/xml
ios8注册通知:http://blog.csdn.net/apple_app/article/details/39228221
iOS中文网址路径转换URLEncode:http://blog.sina.com.cn/s/blog_6ec3c9ce01018sbe.html
在线代码格式化:http://tool.oschina.net/codeformat/xml
ios系统抓包方法:http://www.cnblogs.com/ydhliphonedev/archive/2011/10/27/2226935.html
valueForKeyPath用法:
http://segmentfault.com/blog/lingchen/1190000000526660
GCD的使用:http://www.cnblogs.com/linyawen/archive/2012/08/24/2654466.html
常用字符串的操作:
http://www.cnblogs.com/neworiginou/archive/2012/11/14/2770038.html
字符串去除特殊字符:
http://blog.csdn.net/chenyong05314/article/details/8721380
CSDN:
http://www.csdn.net