Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
DoraemonKit
提交
fc894794
D
DoraemonKit
项目概览
DiDi
/
DoraemonKit
12 个月 前同步成功
通知
166
Star
19623
Fork
3062
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DoraemonKit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
fc894794
编写于
1月 02, 2020
作者:
Y
yixiangboy
提交者:
GitHub
1月 02, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #380 from DeveloperLY/master
fix: 修复部分 BUG
上级
d8083a69
e9b223b9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
7 deletion
+12
-7
iOS/DoraemonKit/Src/Core/CommonUI/StateBar/DoraemonStateBar.m
...DoraemonKit/Src/Core/CommonUI/StateBar/DoraemonStateBar.m
+5
-5
iOS/DoraemonKit/Src/Core/Plugin/ColorPick/Function/DoraemonColorPickWindow.m
.../Core/Plugin/ColorPick/Function/DoraemonColorPickWindow.m
+6
-1
iOS/DoraemonKit/Src/Core/Plugin/LargeImageDetection/Detail/DoraemonResponseImageModel.h
...n/LargeImageDetection/Detail/DoraemonResponseImageModel.h
+1
-1
未找到文件。
iOS/DoraemonKit/Src/Core/CommonUI/StateBar/DoraemonStateBar.m
浏览文件 @
fc894794
...
...
@@ -52,11 +52,11 @@
-
(
void
)
show
{
self
.
hidden
=
NO
;
self
.
frame
=
CGRectMake
(
0
,
0
,
DoraemonScreenWidth
,
IPHONE_STATUSBAR_HEIGHT
);
if
(
IS_IPHONE_X_Series
)
{
_contentLabel
.
frame
=
CGRectMake
(
0
,
self
.
doraemon_height
-
2
0
,
DoraemonScreenWidth
,
20
);
}
else
{
_contentLabel
.
frame
=
CGRectMake
(
0
,
0
,
DoraemonScreenWidth
,
IPHONE_STATUSBAR_HEIGHT
);
self
.
frame
=
CGRectMake
(
0
,
0
,
DoraemonScreenWidth
,
IPHONE_STATUSBAR_HEIGHT
+
15
);
if
(
IS_IPHONE_X_Series
)
{
_contentLabel
.
frame
=
CGRectMake
(
0
,
self
.
doraemon_height
-
2
5
,
DoraemonScreenWidth
,
20
);
}
else
{
_contentLabel
.
frame
=
CGRectMake
(
0
,
self
.
doraemon_height
-
IPHONE_STATUSBAR_HEIGHT
,
DoraemonScreenWidth
,
IPHONE_STATUSBAR_HEIGHT
);
}
}
...
...
iOS/DoraemonKit/Src/Core/Plugin/ColorPick/Function/DoraemonColorPickWindow.m
浏览文件 @
fc894794
...
...
@@ -103,7 +103,12 @@ static CGFloat const kColorPickWindowSize = 150;
-
(
void
)
updateScreeShotImage
{
UIGraphicsBeginImageContext
([
UIScreen
mainScreen
].
bounds
.
size
);
[[[
UIApplication
sharedApplication
].
delegate
window
].
layer
renderInContext
:
UIGraphicsGetCurrentContext
()];
// 在部分复杂界面使用此功能调用这个方法的时候,CPU使用率会暴增至90%以上
// https://stackoverflow.com/questions/19066717/how-to-render-view-into-image-faster
// [[[UIApplication sharedApplication].delegate window].layer renderInContext:UIGraphicsGetCurrentContext()];
// 建议使用这个方法
[[[
UIApplication
sharedApplication
].
delegate
window
]
drawViewHierarchyInRect
:[
UIScreen
mainScreen
].
bounds
afterScreenUpdates
:
YES
];
UIImage
*
image
=
UIGraphicsGetImageFromCurrentImageContext
();
UIGraphicsEndImageContext
();
...
...
iOS/DoraemonKit/Src/Core/Plugin/LargeImageDetection/Detail/DoraemonResponseImageModel.h
浏览文件 @
fc894794
...
...
@@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
DoraemonResponseImageModel
:
NSObject
@property
(
nonatomic
,
strong
)
NSURL
*
url
;
@property
(
nonatomic
,
strong
)
NSData
*
data
;
@property
(
nonatomic
,
assign
)
NSString
*
size
;
@property
(
nonatomic
,
copy
)
NSString
*
size
;
-
(
instancetype
)
initWithResponse
:
(
NSURLResponse
*
)
response
data
:(
NSData
*
)
data
;
@end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录