自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 给控件添加阴影

// 不可过多添加self.commentsView.layer.shadowOffset = CGSizeMake(0, 3);self.commentsView.layer.shadowRadius = 5.0;self.commentsView.layer.shadowColor = [UIColor blackColor].CGColor;self.commentsView.laye

2015-12-31 09:56:44 286

转载 获取发布时间距离当前时间的时间

- (NSDate *)dateFromString:(NSString *)dateString{ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat: @"yyyy-MM-dd HH:mm:ss"]; NSDate *destDate= [

2015-12-31 09:54:59 393

转载 震屏动画

static int numberOfShakes = 4;//震动次数static float durationOfShake = 0.3f;//震动时间static float vigourOfShake = 0.03f;//震动幅度- (CAKeyframeAnimation *)shakeAnimation:(CGRect)frame{ CAKeyframeAnimation

2015-12-31 09:53:21 429

原创 动态模糊,毛玻璃

//实现模糊效果self.visualEffectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]]; // 三种风格self.visualEffectView.frame = self.heroCollectionView.frame;

2015-12-31 09:51:17 441

原创 汉字转拼音并取首字母

@interface ChineseToPinYin : NSObject// 汉字转拼音+ (NSString *)chineseToPinYinWithName:(NSString *)name isSub:(BOOL)isSub;@end// 引入.h头文件@implementation ChineseToPinYin// 汉字转拼音 第一个参数是需要转换的文本 第二个参数是是否首

2015-12-31 09:40:34 566

原创 自己封装的LMAVPlayer 内含demo

介于网络上相关的资料较少,这里我给大家发布一个,可自己丰富功能,目前只包含基础功能,快进,缓存条,举报,音量,播放,暂停等。

2015-12-31 09:19:31 694 3

空空如也

空空如也

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

TA关注的人

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