您的位置:首页 > 移动开发 > IOS开发

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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: