How to fill uncompleted circle drawn iOS

Solution:

If you want to fill the custom draw you had did in iOS follow the below steps.For example if you drawn an annotation symbol using arc function then follow the steps to achieve that.

Code:
        CGContextSetFillColorWithColor(ctx, UIColor.black.CGColor);
        CGContextFillPath(ctx);

Comments

Popular posts from this blog

How to blink a button iOS swift?

Convert NsNumber, NSDate to String in iOS Swift

Parse the value from string value iOS swift