文章分类 - ios之工具类
摘要:https://www.iteye.com/blog/zxs19861202-1458797 1、调用 自带mail [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@hzlzh.com"
阅读全文
摘要:@interface UIButton (CBNavgationItem) + (UIButton *)cb_buttonWith:(UIButtonType)buttonType; - (void)cbSet_Enable:(BOOL)isEnable; @end #import "UIButto
阅读全文
摘要:@interface UIViewController (CBNib) + (instancetype)loadFromNib; + (instancetype)loadNibWithName:(NSString *)nibName; @end #import "UIViewController+C
阅读全文
摘要:#import <CoreLocation/CoreLocation.h> class <CLLocationManagerDelegate> { CLLocationManager * locationManager; NSString * currentCity; //当前城市 } #pragm
阅读全文
摘要:#import <YYKit/YYKit.h> #import <SDWebImage/UIImageView+WebCache.h> @interface UIImageView (Extension) // 没有占位图片 - (void)setHeaderUrl:(NSString *)url;
阅读全文
摘要:@interface UIView (ExtensionTV) //设置Uiview的背景为图片 - (void)sd_setBGImageWithName:(NSString *)imageName; @end #import "UIView+ExtensionTV.h" #import "UII
阅读全文
摘要:+ (NSString *)getDevicePlatform{ struct utsname systemInfo; uname(&systemInfo); NSString *platform = [NSString stringWithCString:systemInfo.machine en
阅读全文
摘要:+ (void)shakeAndRing { // 震动 BOOL _shakeAllowed = ![UserDefaults boolForKey:[NSString stringWithFormat:@"shakeDisallowed.%li", [ToolUtils getUserID]]]
阅读全文
摘要:+ (NSString *)getMMSSFromSS:(NSString *)totalTime { NSInteger seconds = [totalTime integerValue]; //format of hour NSString *str_hour = [NSString stri
阅读全文
摘要:可能需要的头文件 #import <AVFoundation/AVFoundation.h> #import <sys/utsname.h> #define CachesPath NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUse
阅读全文
摘要:#import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSDictionary (HDSerialize) /** * 字段转换成json字符串 * * @param dict <#dict description#
阅读全文
摘要:// // UIImage+Extension.m // AutoOwner // #import "UIImage+Extension.h" + (UIImage*)imageWithName:(NSString *)imageName OriginImageScaleToSize:(CGSize
阅读全文
摘要:#pragma mark -选择图片 - (LxGridViewFlowLayout *)layout{ if (!_layout) { _layout = [[LxGridViewFlowLayout alloc] init]; _margin = 10; _itemWH = (self.view
阅读全文
摘要:// // TVFormatter.m // // Created by on 2017/5/8. // Copyright © 2017年 autotv. All rights reserved. // #import "TVFormatter.h" @implementation TVForma
阅读全文
摘要:// // TVDateUtil.m // AutoOwnerTV // // Created by admin on 2018/8/28. // Copyright © 2018年 autoTV. All rights reserved. // #import "TVDateUtil.h" @im
阅读全文
摘要:// // StrUtil.m // AutoOwnerTV // // Created by admin on 2018/5/31. // Copyright © 2018年 autoTV. All rights reserved. // #import "StrUtil.h" @implemen
阅读全文