18
UIView'de iki köşeyi yuvarlayın
Bir süre önce , bir görünümün sadece iki köşesini yuvarlamakla ilgili bir soru yayınladım ve harika bir yanıt aldım, ancak onu uygularken sorunlar yaşıyorum. İşte drawRect: yöntemim: - (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 …