18
Zaokrąglij dwa rogi w UIView
Niedawno opublikowałem pytanie dotyczące zaokrąglania tylko dwóch rogów widoku i otrzymałem świetną odpowiedź, ale mam problemy z jej wdrożeniem. Oto moja metoda drawRect: - (void)drawRect:(CGRect)rect { //[super drawRect:rect]; <------Should I uncomment this? int radius = 5; CGContextRef context = UIGraphicsGetCurrentContext(); CGContextBeginPath(context); CGContextAddArc(context, rect.origin.x + radius, rect.origin.y + rect.size.height - radius, …