- 博客(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 311
转载 获取发布时间距离当前时间的时间
- (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 410
转载 震屏动画
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 449
原创 动态模糊,毛玻璃
//实现模糊效果self.visualEffectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]]; // 三种风格self.visualEffectView.frame = self.heroCollectionView.frame;
2015-12-31 09:51:17 456
原创 汉字转拼音并取首字母
@interface ChineseToPinYin : NSObject// 汉字转拼音+ (NSString *)chineseToPinYinWithName:(NSString *)name isSub:(BOOL)isSub;@end// 引入.h头文件@implementation ChineseToPinYin// 汉字转拼音 第一个参数是需要转换的文本 第二个参数是是否首
2015-12-31 09:40:34 610
原创 自己封装的LMAVPlayer 内含demo
介于网络上相关的资料较少,这里我给大家发布一个,可自己丰富功能,目前只包含基础功能,快进,缓存条,举报,音量,播放,暂停等。
2015-12-31 09:19:31 742 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人