ios - Draw an ellipse or circle inside a UIImageView -
i have image created , want draw ellipse or circle on parameters x coordinates, y coordinates, width , height. i've search on google , found out can't draw inside ui image view.
uiimageview *imageview = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"tom.jpg"]]; [self.view addsubview:imageview]; and can add filter effect blur inside draw ellipse or circle?
refer explained article : http://www.appcoda.com/ios-programming-circular-image-calayer/
creating circular profile image :
self.profileimageview.layer.cornerradius = self.profileimageview.frame.size.width / 2; self.profileimageview.clipstobounds = yes; adding border :
self.profileimageview.layer.borderwidth = 3.0f; self.profileimageview.layer.bordercolor = [uicolor whitecolor].cgcolor; creating rounded corner image :
self.profileimageview.layer.cornerradius = 10.0f;
Comments
Post a Comment