自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

转载 给view添加虚线边框

CAShapeLayer *border = [CAShapeLayerlayer];                border.strokeColor = [UIColordarkGrayColor].CGColor;                border.fillColor =nil;                border.path = [UI

2016-09-28 16:23:32 394

转载 dispatch_get_main_queue等待机会,直到主队列空闲才执行

[self.tableView reloadData];  dispatch_async(dispatch_get_main_queue(), ^{      //刷新完成  });

2016-09-28 15:30:44 861

转载 collectionView刷新结束状态获取回调方法

[memberListCell.collectionView performBatchUpdates:^{                    //这里执行刷新语句                    } completion:^(BOOL finished) {                  //这里获取刷新结束回调                   

2016-09-28 15:28:58 3207

转载 设置属性字体

/** *  设置属性字体 * *  @param elementString 需要设置的文字 *  @param i             到第几个位置停止设置 * *  @return 设置好的文字 */- (NSMutableAttributedString *) attributedString:(NSString *)elementString last

2016-09-22 19:18:57 536

转载 tableView cell 左滑点击删除等点击按钮

-(NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{    UITableViewRowAction *deleteRoWAction = [UITableViewRowActionrowActionWithStyle:UITableVi

2016-09-21 12:36:31 430

转载 UILabel修改行间距

//修改行间距    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStylealloc]init];    paragraphStyle.lineSpacing =10;    NSDictionary *attributes =@{ NSFontAttributeName:[UIFonts

2016-09-13 11:22:33 200

转载 果冻弹簧效果动画

//在点击button时加入这句话就行// 果冻弹簧效果动画    CABasicAnimation *scaleAnimation1 = [CABasicAnimationanimationWithKeyPath:@"transform.scale"];    scaleAnimation1.fromValue = [NSNumbernumberWithFloat:1.0];

2016-09-11 13:17:15 958

转载 Objective c里字符串NSString 过滤HTML标签的两种方法

//第一种,用NSScanner扫描,来自下面这个著名的链接,不过现在打不开鸟~  // Source:http://rudis.net/content/2009/01/21/flatten-html-content-ie-strip-tags-cocoaobjective-c - (NSString *)removeHTML:(NSString *)html { NSSc

2016-09-10 11:57:04 242

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除