09 2015 档案
摘要:第一步: 布置需要放大的TopView:1. 创建TopViewUIImageView *topView = [[UIImageView alloc] init];2. 设置图片UIImage *image = [UIImage imageNamed:@"Big.jpg"];topView.imag...
阅读全文
摘要:最近手动导入AFNetworking 2.6.0框架时发现Xcode报如下错误:1. Use of undeclared identifier 'kSecFormatUnknown'2.Use of undeclared identifier 'kSecItemPemArmour'3. Implic...
阅读全文
摘要:1. TextView/TextField光标颜色可通过设置tintColor属性进行修改:self.textView.tintColor = [UIColor redColor];2. TextView/TextField自定义光标长度或高度, 可通过重写父类方法caretRectForPosit...
阅读全文
摘要:当面向字典开发或服务器返回的数据为字典时,应当判断字典内是否包含对应的key值,从而避免返回key值为空而导致程序奔溃:NSDictionary *dict = self.datas[indexPath.row];if([[dict allKeys] containsObject:@"key"]){...
阅读全文
摘要:原生TextView无占位文字, 可通过drawRect:方法为其添加占位文字, 具体设置如下:1. 获取当前占位文字属性:// 文字属性NSMutableDictionary *attrs = [NSMutableDictionary dictionary];attrs[NSFontAttribu...
阅读全文
摘要:1. 创建刷新控件, 并将控件设置到TableView的tableFooterView:- (void)setupUpRefresh{ FooterView *refreshFooterView = [FooterView refreshFooterView]; refreshFoote...
阅读全文

浙公网安备 33010602011771号