Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

查看视图崩溃 #163

Open
ivoidcat opened this issue Aug 13, 2024 · 1 comment
Open

查看视图崩溃 #163

ivoidcat opened this issue Aug 13, 2024 · 1 comment

Comments

@ivoidcat
Copy link

*** Assertion failure in void _UIGraphicsBeginImageContextWithOptions(CGSize, BOOL, CGFloat, BOOL)(), UIGraphics.m:410
po self.frame
(origin = (x = 146.33333333333334, y = 12.833333333333334), size = (width = 0, height = 0))
是因为某些视图的size是0,但是这里没有判断

po self
<CALayer:0x302b3aae0; position = CGPoint (146.333 12.8333); bounds = CGRect (0 0; 9.66667 9.66667); delegate = <_UIPageIndicatorView: 0x1138934d0; frame = (146.333 12.8333; 0 0); transform = [0, 0, 0, 0, 0, 0]; layer = <CALayer: 0x302b3aae0>>; sublayers = (<CALayer: 0x302b39760>); opaque = YES; allowsGroupOpacity = YES; transform = CATransform3D (0 0 0 0; 0 0 0 0; 0 0 1 0; 0 0 0 1)>

@ivoidcat
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant