- 博客(7)
- 资源 (5)
- 收藏
- 关注
原创 使用NSMutableAttributedString 实现富文本
NSString *priceStr = [NSString stringWithFormat:@"合计金额%ld元",(long)price]; NSMutableAttributedString *AttributedStr = [[NSMutableAttributedString alloc]initWithString:priceStr];// [string rangeO
2017-05-27 13:45:48 404
原创 UISlider相关整理
self.slider = [[ASValueTrackingSlider alloc] initWithFrame:CGRectMake(10 , 50, kScreenW - 40, 30)]; [self.slider setMaxFractionDigitsDisplayed:0]; self.slider.minimumValue = 10;// 设置最小值 sel
2017-05-27 11:21:18 412
原创 Date Formate Patterns相关整理
//实例化一个NSDateFormatter对象NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];//设定时间格式,这里可以设置成自己需要的格式[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];//用[NSDate date]可以获取系统当前时间NSStri
2017-05-27 08:56:43 447
原创 Capturing 'self' strongly in this block is likely to lead to a retain cycle [duplicate]
//日期回调 **__weak typeof(self) weakSelf = self;** datePickVC.completeBlock = ^(NSString *selectDate) { [**weakSelf.**starDataBtn setTitle:selectDate forState:UIControlStateNormal]; weakSelf
2017-05-27 08:48:20 488
原创 UITableView侧滑多个按钮
(NSArray )tableView:(UITableView )tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{// 添加一个删除按钮UITableViewRowAction *deleteRowAction = [UITableViewRowAction rowActionWithStyle:UITableVie
2017-05-26 13:27:49 573
原创 xcode8 iOS10上关于NSPhotoLibraryUsageDescription NSCameraUsageDescription 等问题
最近升级了Xcode8.0,真是很多坑啊,填完一个来另外一个,今天又遇到了一个,用Xcode8.0上传项目时被驳回说是info.plist里面没有设置NSPhotoLibraryUsageDescription、NSCameraUsageDescription、NSContactsUsageDescription、NSMicrophoneUsageDescription等字段,之前这些都是预设的不用
2017-05-18 12:04:49 493
原创 A build only device cannot be used to run this target.
A build only device cannot be used to run this target. 造成这个错误的原因是,你选择的版本号,在虚拟机中没有, 所以我们要重新选择版本号
2017-05-15 16:53:03 616
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人