摘要:
打开相机://先设定sourceType为相机,然后判断相机是否可用(ipod)没相机,不可用将sourceType设定为相片库 UIImagePickerControllerSourceType sourceType = UIImagePickerControllerSourceTypeCamera; // if (![UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { // sourceType = UIImagePickerC... 阅读全文
posted @ 2014-04-02 20:37
chenhanqing_blcu
阅读(345)
评论(0)
推荐(0)
摘要:
– textRectForBounds: //重写来重置文字区域– drawTextInRect: //改变绘文字属性.重写时调用super可以按默认图形属性绘制,若自己完全重写绘制函数,就不用调用super了.– placeholderRectForBounds: //重写来重置占位符区域– drawPlaceholderInRect: //重写改变绘制占位符属性.重写时调用super可以按默认图形属性绘制,若自己完全重写绘制函数,就不用调用super了.– borderRectForBounds: //重写来重置边缘区域– editingRectForBounds: /... 阅读全文
posted @ 2014-04-02 16:42
chenhanqing_blcu
阅读(185)
评论(0)
推荐(0)
摘要:
KVC 后边附有源码类似的用法[user1 setValue:@"令狐冲" forKey:@"name"];[user1 setValue:@"武当"forKeyPath:@"menpai.name"];//中间有路径过程NSLog(@"menpai:%@",[user1 valueForKeyPath:@"menpai.name"]);[user1 setValuesForKeysWithDictionary:dic];//dictionary和user1的属性要一致/KV 阅读全文
posted @ 2014-04-02 13:32
chenhanqing_blcu
阅读(157)
评论(0)
推荐(0)
浙公网安备 33010602011771号