自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 本周 上周 本月 上月

//获取本周周一的时间+(NSDate *)getMondayTime{ NSDate *nowDate = [NSDate date]; NSCalendar *calendar = [NSCalendar currentCalendar]; NSDateComponents *comp = [calendar components:NSCalendarUnitYear...

2019-04-15 10:13:08 127

原创 UIView 绘制阴影

UIView * userBackgroundView = [[UIView alloc] initWithFrame:CGRectMake(38, 20, kScreenWidth-76, 44)]; userBackgroundView.backgroundColor = [UIColor white]; userBackgroundView.layer.cornerR...

2018-05-02 10:59:53 215

原创 Xcode使用Shell脚本快速打包

最近抽时间总结下自己使用shell脚本的快速打包的过程,其实网上也有很多版本。!/bin/bashTargetTARGET_NAME=”LotteryProject_HZCB”schemeSCHEME_NAME=”LotteryProject_HZCB”projectPROJECT=”/Users/xxxx/Desktop/IOS/xxxx.xcwork...

2018-04-18 20:24:21 771

原创 [!] The 'Pods-LotteryProject' target has libraries with conflicting names: libaacplus.a, libcrypto.a

[!] The ‘Pods-LotteryProject’ target has libraries with conflicting names: libaacplus.a, libcrypto.a 使用云信pod ‘NIMSDK_LITE’和pod ‘NIMKit’造成的,或者功能重叠的第三方。...

2018-04-09 21:15:58 1563

原创 关于StoryBord 中给UIButton 设置边框

在我们使用StoryBord或Xib时有时候需要给UIButton设置边框,一种方法是使用代码,另外一种就是在Xcode右侧添加 我们在这里可以实现layer.cornerRadius和layer.borderWidth但是不能直接实现layer.borderColor。 实现layer.borderColor需要我们自定义一个CALayer的分类

2017-10-23 21:59:06 557

原创 Swift中 deinit 取代 Objective-C dealloc

Objective-C-(void)dealloc{    NSLog(@"对象被delloc没有造成循环引用");}Swiftdeinit {        print("对象被delloc没有造成循环引")    }

2017-05-24 10:19:06 3514

原创 Swift计算字符串size(宽度,高度)方法

OC方法 iOS 7.0及以上CGSize  size = [stringboundingRectWithSize:CGSizeMake(MAXFLOAT,MAXFLOAT)  options:(NSStringDrawingUsesFontLeading|NSStringDrawingTruncatesLastVisibleLine|NSStringDrawingUsesLi

2017-05-23 16:33:47 1714

空空如也

空空如也

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

TA关注的人

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