汇率换算问题集合
afn有时候请求接口会有问题
-
Attempting to modify object outside of a write transaction - call beginWriteTransaction on an RLMRealm instance first.
(企图在 写入事务 外修改对象)[http://blog.csdn.net/qq_31810357/article/details/52088268];
-
修改UITableView 右侧索引栏的背景颜色和字体颜色
//索引栏底色
tableView.sectionIndexBackgroundColor = [UIColor blackColor];
//索引字体颜色
tableView.sectionIndexColor = [UIColor grayColor];
- 取消cell的选中状态
preferCell.selectionStyle = UITableViewCellSelectionStyleNone;
- 根据十六进制设置颜色
#define UIColorFromRGBA(rgbValue, alphaValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:(float)alphaValue]
- 设置cell的属性的时候要等cell存在再设置,要不然会无效
//在注释处设置取消选中状态没用
static NSString *defaultCell = @"defaultCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:defaultCell];
// cell.selectionStyle = UITableViewCellSelectionStyleNone;
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle: