Por que o parâmetro cornerRadii do tipo CGSize está em - [UIBezierPath bezierPathWithRoundedRect: byRoundingCorners: cornerRadii:]?
Eu não consigo entender isso ... estou brincando com
-[UIBezierPath bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:]
assim sendo:
bezierPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(10, 10, 80, 80)
byRoundingCorners:(UIRectCornerBottomLeft)
cornerRadii:CGSizeMake(20, 20)];
E isso funciona como esperado. Mas se eu substituir cornerRadii: CGSizeMake (20, 20) por, digamos,cornerRadii:CGSizeMake(20, 5)
ouCGSizeMake(20, 40)
não há diferença.
Por que é cornerRadiiCGSize
e nãoCGFloat
então? O que éCGSize.height
para?
Qualquer idéias e conselhos serão muito apreciados :)