文章分类 -  ios之工具类

摘要:https://www.iteye.com/blog/zxs19861202-1458797 1、调用 自带mail [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@hzlzh.com" 阅读全文
posted @ 2019-10-16 18:43 sundaysios 阅读(244) 评论(0) 推荐(0) 编辑
摘要:@interface UIButton (CBNavgationItem) + (UIButton *)cb_buttonWith:(UIButtonType)buttonType; - (void)cbSet_Enable:(BOOL)isEnable; @end #import "UIButto 阅读全文
posted @ 2019-01-25 10:04 sundaysios 阅读(87) 评论(0) 推荐(0) 编辑
摘要:@interface UIViewController (CBNib) + (instancetype)loadFromNib; + (instancetype)loadNibWithName:(NSString *)nibName; @end #import "UIViewController+C 阅读全文
posted @ 2019-01-25 10:02 sundaysios 阅读(459) 评论(0) 推荐(0) 编辑
摘要:#import <CoreLocation/CoreLocation.h> class <CLLocationManagerDelegate> { CLLocationManager * locationManager; NSString * currentCity; //当前城市 } #pragm 阅读全文
posted @ 2019-01-25 09:48 sundaysios 阅读(1033) 评论(0) 推荐(0) 编辑
摘要:#import <YYKit/YYKit.h> #import <SDWebImage/UIImageView+WebCache.h> @interface UIImageView (Extension) // 没有占位图片 - (void)setHeaderUrl:(NSString *)url; 阅读全文
posted @ 2019-01-25 09:35 sundaysios 阅读(133) 评论(0) 推荐(0) 编辑
摘要:@interface UIView (ExtensionTV) //设置Uiview的背景为图片 - (void)sd_setBGImageWithName:(NSString *)imageName; @end #import "UIView+ExtensionTV.h" #import "UII 阅读全文
posted @ 2019-01-25 09:33 sundaysios 阅读(180) 评论(0) 推荐(0) 编辑
摘要:+ (NSString *)getDevicePlatform{ struct utsname systemInfo; uname(&systemInfo); NSString *platform = [NSString stringWithCString:systemInfo.machine en 阅读全文
posted @ 2018-12-19 11:14 sundaysios 阅读(67) 评论(0) 推荐(0) 编辑
摘要:+ (void)shakeAndRing { // 震动 BOOL _shakeAllowed = ![UserDefaults boolForKey:[NSString stringWithFormat:@"shakeDisallowed.%li", [ToolUtils getUserID]]] 阅读全文
posted @ 2018-12-19 11:10 sundaysios 阅读(231) 评论(0) 推荐(0) 编辑
摘要:+ (NSString *)getMMSSFromSS:(NSString *)totalTime { NSInteger seconds = [totalTime integerValue]; //format of hour NSString *str_hour = [NSString stri 阅读全文
posted @ 2018-12-19 10:46 sundaysios 阅读(112) 评论(0) 推荐(0) 编辑
摘要:可能需要的头文件 #import <AVFoundation/AVFoundation.h> #import <sys/utsname.h> #define CachesPath NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUse 阅读全文
posted @ 2018-12-19 10:45 sundaysios 阅读(161) 评论(0) 推荐(0) 编辑
摘要:#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSDictionary (HDSerialize) /** * 字段转换成json字符串 * * @param dict <#dict description# 阅读全文
posted @ 2018-12-19 10:26 sundaysios 阅读(232) 评论(0) 推荐(0) 编辑
摘要:// // UIImage+Extension.m // AutoOwner // #import "UIImage+Extension.h" + (UIImage*)imageWithName:(NSString *)imageName OriginImageScaleToSize:(CGSize 阅读全文
posted @ 2018-09-15 10:29 sundaysios 阅读(109) 评论(0) 推荐(0) 编辑
摘要:#pragma mark -选择图片 - (LxGridViewFlowLayout *)layout{ if (!_layout) { _layout = [[LxGridViewFlowLayout alloc] init]; _margin = 10; _itemWH = (self.view 阅读全文
posted @ 2018-09-15 08:57 sundaysios 阅读(1697) 评论(0) 推荐(0) 编辑
摘要:// // TVFormatter.m // // Created by on 2017/5/8. // Copyright © 2017年 autotv. All rights reserved. // #import "TVFormatter.h" @implementation TVForma 阅读全文
posted @ 2018-09-15 08:50 sundaysios 阅读(240) 评论(0) 推荐(0) 编辑
摘要:// // TVDateUtil.m // AutoOwnerTV // // Created by admin on 2018/8/28. // Copyright © 2018年 autoTV. All rights reserved. // #import "TVDateUtil.h" @im 阅读全文
posted @ 2018-09-15 08:45 sundaysios 阅读(84) 评论(0) 推荐(0) 编辑
摘要:// // StrUtil.m // AutoOwnerTV // // Created by admin on 2018/5/31. // Copyright © 2018年 autoTV. All rights reserved. // #import "StrUtil.h" @implemen 阅读全文
posted @ 2018-09-15 08:43 sundaysios 阅读(169) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示