Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita19f1ac

Browse files
authored
fix the crash when opening view debug hierarchy (#700)
1 parent1b98316 commita19f1ac

File tree

1 file changed

+4
-0
lines changed
  • Classes/ViewHierarchy/SnapshotExplorer

1 file changed

+4
-0
lines changed

‎Classes/ViewHierarchy/SnapshotExplorer/FHSView.m‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ - (id)ifImportant:(id)importantAttr ifNormal:(id)normalAttr {
8888
@implementationFHSView (Snapshotting)
8989

9090
+ (UIImage *)drawView:(UIView *)view {
91+
if (CGRectIsEmpty(view.bounds)) {
92+
return [UIImagenew];
93+
}
94+
9195
CGSize size = view.bounds.size;
9296
CGRect bounds = view.bounds;
9397
CGFloat minUnit =1.f / UIScreen.mainScreen.scale;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp