iOS
littleGreenTrain
这个作者很懒,什么都没留下…
展开
-
vux scroller在iOS13上,一停止滑动就跳到顶部
找到 \node_modules\vux-xscroll\build\cmd\simulate-scroll.js文件,对其中的getScrollTop方法重写, getScrollTop: function() { // var transY = window.getComputedStyle(this.container)[transform].match(/[-\d\.*...原创 2020-03-11 09:13:00 · 327 阅读 · 0 评论 -
iOS 根据字符串长度,获取UILabel的宽高
-(void)testGetHeightByLabel{ CGFloat X = 0; CGFloat Y = 50; NSString *str1 = @"往事不要再提,人生已多风雨"; NSString *str2 = @"纵然记忆抹不去,爱与恨都还在心里.真的要断了过去,让明天好好继续,"; NSString *info = @"但是公司的高度是广东...原创 2020-01-14 14:19:16 · 664 阅读 · 0 评论 -
iOS数组越界,字典空值的防奔溃处理
https://github.com/MrLujh/SafeObject // 测试数组 NSArray *arr = @[@"1",@"2",@"2",@"2",@"2",@"2",@"2",@"2",@"2"]; NSMutableArray *tableArray = [[NSMutableArray alloc] initWithArray:arr]; ...转载 2020-01-13 17:16:58 · 817 阅读 · 0 评论 -
iOS真机包下载(12.4&13.7&14)
Xcode配置路径: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport原创 2020-01-14 14:20:46 · 1126 阅读 · 0 评论 -
iOS plist文件设置APP是否允许在后台运行
Application does not run in background- ios 4.0之后,是否允许程序在后台运行 true:允许程序在后台运行, false:不允许程序后台运行,即didenterbackground后,杀死程序原创 2019-07-09 09:41:00 · 765 阅读 · 0 评论