My scroll has some views that is cornerRadius = 10.0
and masksToBounds = YES
.
This causes a performance issue for scrolling my scroll view. Though I tried each view's shouldRasterize
is set YES
, the issue is not solved.
However, I know the solution for this issue. That is what masksToBound
is set NO
. (masksToBound's
default value is NO)
Although masksToBound
is NO
, my views's corners still have curve and the performance issue is solved, too.
I want to know about relation between cornerRadius
and masksToBounds
. I'm afraid of unexpected issues with this setting.
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…