iOS开发稀碎小技巧四

xiaoxiao2021-02-28  108

本篇出处: iOS_小松哥 1.Base64编码与NSString对象或NSData对象的转换

// Create NSData object NSData *nsdata = [@"iOS Developer Tips encoded in Base64"   dataUsingEncoding:NSUTF8StringEncoding]; // Get NSString from NSData object in Base64 NSString *base64Encoded = [nsdata base64EncodedStringWithOptions:0]; // Print the Base64 encoded string NSLog(@"Encoded: %@", base64Encoded); // Let's go the other way... // NSData from the Base64 encoded str NSData *nsdataFromBase64String = [[NSData alloc]   initWithBase64EncodedString:base64Encoded options:0]; // Decoded NSString from the NSData NSString *base64Decoded = [[NSString alloc]   initWithData:nsdataFromBase64String encoding:NSUTF8StringEncoding]; NSLog(@"Decoded: %@", base64Decoded);

2.取消UICollectionView的隐式动画 UICollectionView在reloadItems的时候,默认会附加一个隐式的fade动画,有时候很讨厌,尤其是当你的cell是复合cell的情况下(比如cell使用到了UIStackView)。 下面几种方法都可以帮你去除这些动画

//方法一 [UIView performWithoutAnimation:^{     [collectionView reloadItemsAtIndexPaths:@[[NSIndexPath indexPathForItem:index inSection:0]]]; }]; //方法二 [UIView animateWithDuration:0 animations:^{     [collectionView performBatchUpdates:^{         [collectionView reloadItemsAtIndexPaths:@[[NSIndexPath indexPathForItem:index inSection:0]]];     } completion:nil]; }]; //方法三 [UIView setAnimationsEnabled:NO]; [self.trackPanel performBatchUpdates:^{     [collectionView reloadItemsAtIndexPaths:@[[NSIndexPath indexPathForItem:index inSection:0]]]; } completion:^(BOOL finished) {     [UIView setAnimationsEnabled:YES]; }];

3.让Xcode的控制台支持LLDB类型的打印 打开终端输入三条命令:

touch ~/.lldbinit echo display @import UIKit >> ~/.lldbinit echo target stop-hook add -o \"target stop-hook disable\" >> ~/.lldbinit

4.无论是执行pod install还是pod update都很慢,甚至有时候会卡住 原因在于当执行以上两个命令的时候会升级CocoaPods的spec仓库,加一个参数可以省略这一步,然后速度就会提升不少。加参数的命令如下:

pod install --verbose --no-repo-update pod update --verbose --no-repo-update

5.UIImage 占用内存大小

UIImage *image = [UIImage imageNamed:@"aa"]; NSUInteger size  = CGImageGetHeight(image.CGImage) * CGImageGetBytesPerRow(image.CGImage);

6.GCD timer定时器

dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0,queue); dispatch_source_set_timer(timer,dispatch_walltime(NULL, 0),1.0*NSEC_PER_SEC, 0); //每秒执行 dispatch_source_set_event_handler(timer, ^{     //@"倒计时结束,关闭"     dispatch_source_cancel(timer);     dispatch_async(dispatch_get_main_queue(), ^{     }); }); dispatch_resume(timer);

7.图片上绘制文字 写一个UIImage的category

- (UIImage *)imageWithTitle:(NSString *)title fontSize:(CGFloat)fontSize {     //画布大小     CGSize size=CGSizeMake(self.size.width,self.size.height);     //创建一个基于位图的上下文     UIGraphicsBeginImageContextWithOptions(size,NO,0.0);//opaque:NO  scale:0.0     [self drawAtPoint:CGPointMake(0.0,0.0)];     //文字居中显示在画布上     NSMutableParagraphStyle* paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];     paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;     paragraphStyle.alignment=NSTextAlignmentCenter;//文字居中     //计算文字所占的size,文字居中显示在画布上     CGSize sizeText=[title boundingRectWithSize:self.size options:NSStringDrawingUsesLineFragmentOrigin                                      attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:fontSize]}context:nil].size;     CGFloat width = self.size.width;     CGFloat height = self.size.height;     CGRect rect = CGRectMake((width-sizeText.width)/2, (height-sizeText.height)/2, sizeText.width, sizeText.height);     //绘制文字     [title drawInRect:rect withAttributes:@{ NSFontAttributeName:[UIFont systemFontOfSize:fontSize],NSForegroundColorAttributeName:[ UIColor whiteColor],NSParagraphStyleAttributeName:paragraphStyle}];     //返回绘制的新图形     UIImage *newImage= UIGraphicsGetImageFromCurrentImageContext();     UIGraphicsEndImageContext();     return newImage; }

8.计算文件大小

//文件大小 - (long long)fileSizeAtPath:(NSString *)path {     NSFileManager *fileManager = [NSFileManager defaultManager];     if ([fileManager fileExistsAtPath:path])     {         long long size = [fileManager attributesOfItemAtPath:path error:nil].fileSize;         return size;     }     return 0; } //文件夹大小 - (long long)folderSizeAtPath:(NSString *)path {     NSFileManager *fileManager = [NSFileManager defaultManager];     long long folderSize = 0;     if ([fileManager fileExistsAtPath:path])     {         NSArray *childerFiles = [fileManager subpathsAtPath:path];         for (NSString *fileName in childerFiles)         {             NSString *fileAbsolutePath = [path stringByAppendingPathComponent:fileName];             if ([fileManager fileExistsAtPath:fileAbsolutePath])             {                 long long size = [fileManager attributesOfItemAtPath:fileAbsolutePath error:nil].fileSize;                 folderSize += size;             }         }     }     return folderSize; }

9.UIView设置部分圆角 你是不是也遇到过这样的问题,一个button或者label,只要右边的两个角圆角,或者只要一个圆角。该怎么办呢。这就需要图层蒙版来帮助我们了

CGRect rect = view.bounds; CGSize radio = CGSizeMake(30, 30);//圆角尺寸 UIRectCorner corner = UIRectCornerTopLeft|UIRectCornerTopRight;//这只圆角位置 UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:corner cornerRadii:radio]; CAShapeLayer *masklayer = [[CAShapeLayer alloc]init];//创建shapelayer masklayer.frame = view.bounds; masklayer.path = path.CGPath;//设置路径 view.layer.mask = masklayer;

10.取上整与取下整

floor(x),有时候也写做Floor(x),其功能是“下取整”,即取不大于x的最大整数 例如: x=3.14floor(x)=3 y=9.99999floor(y)=9floor函数对应的是ceil函数,即上取整函数。 ceil函数的作用是求不小于给定实数的最小整数。 ceil(2)=ceil(1.2)=cei(1.5)=2.00 floor函数与ceil函数的返回值均为double型 计算字符串字符长度,一个汉字算两个字符 //方法一: - (int)convertToInt:(NSString*)strtemp {     int strlength = 0;     char* p = (char*)[strtemp cStringUsingEncoding:NSUnicodeStringEncoding];     for (int i=0 ; i<[strtemp lengthOfBytesUsingEncoding:NSUnicodeStringEncoding] ;i++)     {         if (*p)         {             p++;             strlength++;         }         else         {             p++;         }     }     return strlength; } //方法二: -(NSUInteger) unicodeLengthOfString: (NSString *) text {     NSUInteger asciiLength = 0;     for (NSUInteger i = 0; i < text.length; i++)     {         unichar uc = [text characterAtIndex: i];         asciiLength += isascii(uc) ? 1 : 2;     }     return asciiLength; }

11.防止scrollView手势覆盖侧滑手势

[scrollView.panGestureRecognizerrequireGestureRecognizerToFail:self.navigationController.interactivePopGestureRecognizer];

12.去掉导航栏返回的back标题

[[UIBarButtonItem appearance]setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)forBarMetrics:UIBarMetricsDefault];

13.字符串中是否含有中文

+ (BOOL)checkIsChinese:(NSString *)string {     for (int i=0; i<string.length; i++)     {         unichar ch = [string characterAtIndex:i];         if (0x4E00 <= ch  && ch <= 0x9FA5)         {             return YES;         }     }     return NO; }

14.dispatch_group的使用

dispatch_group_t dispatchGroup = dispatch_group_create();     dispatch_group_enter(dispatchGroup);     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{         NSLog(@"第一个请求完成");         dispatch_group_leave(dispatchGroup);     });     dispatch_group_enter(dispatchGroup);     dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(10 * NSEC_PER_SEC) ), dispatch_get_main_queue(), ^{         NSLog(@"第二个请求完成");         dispatch_group_leave(dispatchGroup);     });     dispatch_group_notify (dispatchGroup, dispatch_get_main_queue(), ^(){         NSLog(@"请求完成");     });

15.UITextField每四位加一个空格,实现代理

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {     // 四位加一个空格     if ([string isEqualToString:@""])     {         // 删除字符         if ((textField.text.length - 2) % 5 == 0)         {             textField.text = [textField.text substringToIndex:textField.text.length - 1];         }         return YES;     }     else     {         if (textField.text.length % 5 == 0)         {             textField.text = [NSString stringWithFormat:@"%@ ", textField.text];         }     }     return YES; }

16.获取私有属性和成员变量

#import <objc/runtime.h> //获取私有属性 比如设置UIDatePicker的字体颜色 - (void)setTextColor {     //获取所有的属性,去查看有没有对应的属性     unsigned int count = 0;     objc_property_t *propertys = class_copyPropertyList([UIDatePicker class], &count);     for(int i = 0;i < count;i ++)     {         //获得每一个属性         objc_property_t property = propertys[i];         //获得属性对应的nsstring         NSString *propertyName = [NSString stringWithCString:property_getName(property) encoding:NSUTF8StringEncoding];         //输出打印看对应的属性         NSLog(@"propertyname = %@",propertyName);         if ([propertyName isEqualToString:@"textColor"])         {             [datePicker setValue:[UIColor whiteColor] forKey:propertyName];         }     } } //获得成员变量 比如修改UIAlertAction的按钮字体颜色     unsigned int count = 0;     Ivar *ivars = class_copyIvarList([UIAlertAction class], &count);     for(int i =0;i < count;i ++)     {         Ivar ivar = ivars[i];         NSString *ivarName = [NSString stringWithCString:ivar_getName(ivar) encoding:NSUTF8StringEncoding];         NSLog(@"uialertion.ivarName = %@",ivarName);         if ([ivarName isEqualToString:@"_titleTextColor"])         {             [alertOk setValue:[UIColor blueColor] forKey:@"titleTextColor"];             [alertCancel setValue:[UIColor purpleColor] forKey:@"titleTextColor"];         }     }

17.获取手机安装的应用

Class c =NSClassFromString(@"LSApplicationWorkspace"); id s = [(id)c performSelector:NSSelectorFromString(@"defaultWorkspace")]; NSArray *array = [s performSelector:NSSelectorFromString(@"allInstalledApplications")]; for (id item in array) {     NSLog(@"%@",[item performSelector:NSSelectorFromString(@"applicationIdentifier")]);     //NSLog(@"%@",[item performSelector:NSSelectorFromString(@"bundleIdentifier")]);     NSLog(@"%@",[item performSelector:NSSelectorFromString(@"bundleVersion")]);     NSLog(@"%@",[item performSelector:NSSelectorFromString(@"shortVersionString")]); }

18.判断两个日期是否在同一周 写在NSDate的category里面

- (BOOL)isSameDateWithDate:(NSDate *)date {     //日期间隔大于七天之间返回NO     if (fabs([self timeIntervalSinceDate:date]) >= 7 * 24 *3600)     {         return NO;     }     NSCalendar *calender = [NSCalendar currentCalendar];     calender.firstWeekday = 2;//设置每周第一天从周一开始     //计算两个日期分别为这年第几周     NSUInteger countSelf = [calender ordinalityOfUnit:NSCalendarUnitWeekday inUnit:NSCalendarUnitYear forDate:self];     NSUInteger countDate = [calender ordinalityOfUnit:NSCalendarUnitWeekday inUnit:NSCalendarUnitYear forDate:date];     //相等就在同一周,不相等就不在同一周     return countSelf == countDate; }

19.应用内打开系统设置界面

//iOS8之后 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; //如果App没有添加权限,显示的是设定界面。如果App有添加权限(例如通知),显示的是App的设定界面。 //iOS8之前 //先添加一个url type如下图,在代码中调用如下代码,即可跳转到设置页面的对应项 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]]; 可选值如下: About — prefs:root=General&path=About Accessibility — prefs:root=General&path=ACCESSIBILITY Airplane Mode On — prefs:root=AIRPLANE_MODE Auto- Lock — prefs:root=General&path=AUTOLOCK Brightness — prefs:root=Brightness Bluetooth — prefs:root=General&path=Bluetooth Date & Time — prefs:root=General&path=DATE_AND_TIME FaceTime — prefs:root=FACETIME General — prefs:root=General Keyboard — prefs:root=General&path=Keyboard iCloud — prefs:root=CASTLE iCloud Storage & Backup — prefs:root=CASTLE&path=STORAGE_AND_BACKUP International — prefs:root=General&path=INTERNATIONAL Location Services — prefs:root=LOCATION_SERVICES Music — prefs:root=MUSIC Music Equalizer — prefs:root=MUSIC&path=EQ Music Volume Limit — prefs:root=MUSIC&path=VolumeLimit Network — prefs:root=General&path=Network Nike + iPod — prefs:root=NIKE_PLUS_IPOD Notes — prefs:root=NOTES Notification — prefs:root=NOTIFICATI*****_ID Phone — prefs:root=Phone Photos — prefs:root=Photos Profile — prefs:root=General&path=ManagedConfigurationList Reset — prefs:root=General&path=Reset Safari — prefs:root=Safari Siri — prefs:root=General&path=Assistant Sounds — prefs:root=Sounds Software Update — prefs:root=General&path=SOFTWARE_UPDATE_LINK Store — prefs:root=STORE Twitter — prefs:root=TWITTER Usage — prefs:root=General&path=USAGE VPN — prefs:root=General&path=Network/VPN Wallpaper — prefs:root=Wallpaper Wi-Fi — prefs:root=WIFI ![](http://upload-images.jianshu.io/upload_images/1443628-731a3950d363bc0a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Image.png

20.屏蔽触发事件,2秒后取消屏蔽

[[UIApplication sharedApplication] beginIgnoringInteractionEvents]; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)),dispatch_get_main_queue(), ^{   [[UIApplication sharedApplication] endIgnoringInteractionEvents] });

21.动画暂停再开始

-(void)pauseLayer:(CALayer *)layer {     CFTimeInterval pausedTime = [layer convertTime:CACurrentMediaTime() fromLayer:nil];     layer.speed = 0.0;     layer.timeOffset = pausedTime; } -(void)resumeLayer:(CALayer *)layer {     CFTimeInterval pausedTime = [layer timeOffset];     layer.speed = 1.0;     layer.timeOffset = 0.0;     layer.beginTime = 0.0;     CFTimeInterval timeSincePause = [layer convertTime:CACurrentMediaTime() fromLayer:nil] - pausedTime;     layer.beginTime = timeSincePause; }

22. fillRule原理

23.iOS中数字的格式化

//通过NSNumberFormatter,同样可以设置NSNumber输出的格式。例如如下代码: NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; formatter.numberStyle = NSNumberFormatterDecimalStyle; NSString *string = [formatter stringFromNumber:[NSNumber numberWithInt:123456789]]; NSLog(@"Formatted number string:%@",string); //输出结果为:[1223:403] Formatted number string:123,456,789 //其中NSNumberFormatter类有个属性numberStyle,它是一个枚举型,设置不同的值可以输出不同的数字格式。该枚举包括: typedef NS_ENUM(NSUInteger, NSNumberFormatterStyle) {     NSNumberFormatterNoStyle = kCFNumberFormatterNoStyle,     NSNumberFormatterDecimalStyle = kCFNumberFormatterDecimalStyle,     NSNumberFormatterCurrencyStyle = kCFNumberFormatterCurrencyStyle,     NSNumberFormatterPercentStyle = kCFNumberFormatterPercentStyle,     NSNumberFormatterScientificStyle = kCFNumberFormatterScientificStyle,     NSNumberFormatterSpellOutStyle = kCFNumberFormatterSpellOutStyle }; //各个枚举对应输出数字格式的效果如下:其中第三项和最后一项的输出会根据系统设置的语言区域的不同而不同。 [1243:403] Formatted number string:123456789 [1243:403] Formatted number string:123,456,789 [1243:403] Formatted number string:¥123,456,789.00 [1243:403] Formatted number string:-539,222,988% [1243:403] Formatted number string:1.23456789E8 [1243:403] Formatted number string:一亿二千三百四十五万六千七百八十九

24.如何获取WebView所有的图片地址, 在网页加载完成时,通过js的DOM操作获取图片和添加点击的识别方式

//UIWebView - (void)webViewDidFinishLoad:(UIWebView *)webView {     //这里是js,主要目的实现对url的获取     static  NSString * const jsGetImages =     @"function getImages(){\     var objs = document.getElementsByTagName(\"img\");\     var imgScr = '';\     for(var i=0;i<objs.length;i++){\     imgScr = imgScr + objs[i].src + '+';\     };\     return imgScr;\     };";     [webView stringByEvaluatingJavaScriptFromString:jsGetImages];//注入js方法     NSString *urlResult = [webView stringByEvaluatingJavaScriptFromString:@"getImages()"];     NSArray *urlArray = [NSMutableArray arrayWithArray:[urlResult componentsSeparatedByString:@"+"]];     //urlResurlt 就是获取到得所有图片的url的拼接;mUrlArray就是所有Url的数组 } //WKWebView - (void)webView:(WKWebView *)webView didFinishNavigation:(null_unspecified WKNavigation *)navigation {     static  NSString * const jsGetImages =     @"function getImages(){\     var objs = document.getElementsByTagName(\"img\");\     var imgScr = '';\     for(var i=0;i<objs.length;i++){\     imgScr = imgScr + objs[i].src + '+';\     };\     return imgScr;\     };";     [webView evaluateJavaScript:jsGetImages completionHandler:nil];     [webView evaluateJavaScript:@"getImages()" completionHandler:^(id _Nullable result, NSError * _Nullable error) {         NSLog(@"%@",result);     }]; }

25.获取到webview的高度

CGFloat height = [[self.webView stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight"] floatValue];

26.navigationBar变为纯透明

//第一种方法 //导航栏纯透明 [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; //去掉导航栏底部的黑线 self.navigationBar.shadowImage = [UIImage new]; //第二种方法 [[self.navigationBar subviews] objectAtIndex:0].alpha = 0; tabBar同理 [self.tabBar setBackgroundImage:[UIImage new]]; self.tabBar.shadowImage = [UIImage new];

27.navigationBar根据滑动距离的渐变色实现

//第一种 - (void)scrollViewDidScroll:(UIScrollView *)scrollView {     CGFloat offsetToShow = 200.0;//滑动多少就完全显示     CGFloat alpha = 1 - (offsetToShow - scrollView.contentOffset.y) / offsetToShow;     [[self.navigationController.navigationBar subviews] objectAtIndex:0].alpha = alpha; } //第二种 - (void)scrollViewDidScroll:(UIScrollView *)scrollView {     CGFloat offsetToShow = 200.0;     CGFloat alpha = 1 - (offsetToShow - scrollView.contentOffset.y) / offsetToShow;     [self.navigationController.navigationBar setShadowImage:[UIImage new]];     [self.navigationController.navigationBar setBackgroundImage:[self imageWithColor:[[UIColor orangeColor]colorWithAlphaComponent:alpha]] forBarMetrics:UIBarMetricsDefault]; }

28.//生成一张纯色的图片

- (UIImage *)imageWithColor:(UIColor *)color {     CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f);     UIGraphicsBeginImageContext(rect.size);     CGContextRef context = UIGraphicsGetCurrentContext();     CGContextSetFillColorWithColor(context, [color CGColor]);     CGContextFillRect(context, rect);     UIImage *theImage = UIGraphicsGetImageFromCurrentImageContext();     UIGraphicsEndImageContext();     return theImage; }

29.iOS 开发中一些相关的路径

模拟器的位置: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs 文档安装位置: /Applications/Xcode.app/Contents/Developer/Documentation/DocSets 插件保存路径: ~/Library/ApplicationSupport/Developer/Shared/Xcode/Plug-ins 自定义代码段的保存路径: ~/Library/Developer/Xcode/UserData/CodeSnippets/ 如果找不到CodeSnippets文件夹,可以自己新建一个CodeSnippets文件夹。 描述文件路径 ~/Library/MobileDevice/Provisioning Profiles navigationItem的BarButtonItem如何紧靠屏幕右边界或者左边界? 一般情况下,右边的item会和屏幕右侧保持一段距离:

30.NSString进行URL编码和解码

NSString *string = @"http://abc.com?aaa=你好&bbb=tttee"; //编码 打印:http://abc.com?aaa=你好&bbb=tttee string = [string stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; //解码 打印:http://abc.com?aaa=你好&bbb=tttee string = [string stringByRemovingPercentEncoding];

31.UIWebView设置User-Agent。

//设置 NSDictionary *dic = @{@"UserAgent":@"your UserAgent"}; [[NSUserDefaults standardUserDefaults] registerDefaults:dic]; //获取 NSString *agent = [self.WebView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];

32.获取硬盘总容量与可用容量:

NSFileManager *fileManager = [NSFileManager defaultManager]; NSDictionary *attributes = [fileManager attributesOfFileSystemForPath:NSHomeDirectory() error:nil]; NSLog(@"容量%.2fG",[attributes[NSFileSystemSize] doubleValue] / (powf(1024, 3))); NSLog(@"可用%.2fG",[attributes[NSFileSystemFreeSize] doubleValue] / powf(1024, 3));

33.获取UIColor的RGBA值

UIColor *color = [UIColor colorWithRed:0.2 green:0.3 blue:0.9 alpha:1.0]; const CGFloat *components = CGColorGetComponents(color.CGColor); NSLog(@"Red: %.1f", components[0]); NSLog(@"Green: %.1f", components[1]); NSLog(@"Blue: %.1f", components[2]); NSLog(@"Alpha: %.1f", components[3]);

34.AFN移除JSON中的NSNull

AFJSONResponseSerializer *response = [AFJSONResponseSerializer serializer]; response.removesKeysWithNullValues = YES;

35.ceil()和floor()

ceil()功 能:返回大于或者等于指定表达式的最小整数 floor()功 能:返回小于或者等于指定表达式的最大整数

36.UIWebView里面的图片自适应屏幕 在webView加载完的代理方法里面这样写:

- (void)webViewDidFinishLoad:(UIWebView *)webView {     NSString *js = @"function imgAutoFit() { \     var imgs = document.getElementsByTagName('img'); \     for (var i = 0; i < imgs.length; ++i) { \     var img = imgs[i]; \     img.style.maxWidth = %f; \     } \     }";     js = [NSString stringWithFormat:js, [UIScreen mainScreen].bounds.size.width - 20];     [webView stringByEvaluatingJavaScriptFromString:js];     [webView stringByEvaluatingJavaScriptFromString:@"imgAutoFit()"]; }
转载请注明原文地址: https://www.6miu.com/read-66711.html

最新回复(0)