ioskai'fa
周小小小三
苦逼程序员~~~~~~~
展开
-
Label适应内容,改变高度
_commentLabel.text = commentLabelString;//这句要在算高度前 _commentLabel.font = [UIFontfontWithName:@"MicrosoftYaHei"size:16.0]; _commentLabel.numberOfLines =0;//这里设置为0表示,任意行数 _commentLab原创 2014-12-24 09:37:57 · 457 阅读 · 0 评论 -
查看项目代码总行数
打开终端cd 你的项目复制下行命令回车就行find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l原创 2014-12-25 13:34:58 · 1951 阅读 · 0 评论 -
模拟电子表的功能
- (void)viewDidLoad{ [superviewDidLoad]; _timeLabel.textColor = [UIColorredColor]; _timeLabel.font = [UIFontsystemFontOfSize:13]; _timeLabel.backgroundColor = [UIColorcol原创 2014-12-23 11:39:17 · 442 阅读 · 0 评论