iOS 控件小技巧

作者: zcwfeng | 来源:发表于2018-02-23 17:40 被阅读14次
  • ios ttableView Cell右侧的箭头,圆形等
cell.accessoryType = UITableViewCellAccessoryNone;//cell没有任何的样式

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;//cell的右边有一个小箭头,距离右边有十几像素;

cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;//cell右边有一个蓝色的圆形button;

cell.accessoryType = UITableViewCellAccessoryCheckmark;//cell右边的形状是对号;
  • Debug 和Release 宏定义
#ifdef DEBUG
    NSLog(@"debug facebook");
    // 测试
    [FBSDKSettings enableLoggingBehavior:FBSDKLoggingBehaviorAppEvents];
#else
    NSLog(@"product facebook");
#endif

相关文章

网友评论

    本文标题:iOS 控件小技巧

    本文链接:https://www.haomeiwen.com/subject/kawxxftx.html