i'm trying draw custom button frame follows:
uibezierpath *stroke = [uibezierpath bezierpathwithroundedrect:self.bounds cornerradius:rect_cornecr_radius]; [stroke stroke];
but reason corner curves thinker sides. if @ uibutton's default frame it's uniform. uibutton, b custom button.
any ideas how can make more uibutton.
you stroking bounds of button. draw line centred on edge view, half of thickness of line outside bounds , not drawn. why full thickness in corners. use cgrectinset
on bounds rectangle (inset half thickness of line) , stroke rect.
Comments
Post a Comment