ios 小知识点汇总
2014-09-23 14:44
211 查看
设置tableView的偏移量,滚动到某个位置
Apple LLVM compiler 4.2 Error出现该问题的原因是工程有些部分使用c语言编写,修改下编译的语言,就可以解决该问题了。
Targets --> Build Settings --> Apple LLVM compiler 4.2 - Language --> Compile Sources As 改为Object-C;
UITextField设置placeholder颜色
UIColor *color = [UIColor blackColor];
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"密码" attributes:@{NSForegroundColorAttributeName: color}];
输出子视图的坐标代码:NSLog(@"%@",NSStringFromCGRect(imgView1.frame));
IOS修改名字
view-->Utilities-->Show File Inspector (快捷键:alt+command+1)