提交 0342e5cd 编写于 作者: Y yixiang

1、开启横屏支持 2、Load耗时按照耗时降序排列

上级 bc3a98ae
......@@ -24,6 +24,15 @@
self.title = @"Load耗时检测记录";
_loadModelArray = [NSMutableArray arrayWithArray:dlaLoadModels];
[_loadModelArray sortUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) {
CGFloat costA = [obj1[@"cost"] floatValue];
CGFloat costB = [obj2[@"cost"] floatValue];
if (costA < costB) {
return NSOrderedDescending;
}else{
return NSOrderedAscending;
}
}];
CGFloat allCost = 0.f;
if(_loadModelArray && _loadModelArray.count>0){
for (NSDictionary *dic in _loadModelArray) {
......
......@@ -48,6 +48,8 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册