Actually there is a much simpler way for most cases, example in Swift:
path.append(cutout.reversing())
This works because the default fill rule is the non-zero winding rule.
More Related Contents:
- Draw Graph curves with UIBezierPath
- How to crop the image using UIBezierPath?
- What does the -all_load linker flag do?
- How to parse a date string into an NSDate object in iOS?
- How to allow only single UIViewController to rotate in both Landscape and Portrait direction?
- Calculate new coordinate x meters and y degree away from one coordinate
- Objective-C – When to use ‘self’
- how to get ip address of iphone programmatically [duplicate]
- Parsing JSON dates on IPhone
- Parse NSURL query property
- Break on EXC_BAD_ACCESS in Xcode?
- How to use the first character as a section name
- NSArray Equivalent of Map
- Should I use NSUserDefaults or a plist to store data?
- Search NSArray for value matching value
- Objective-C: How to replace HTML entities? [duplicate]
- Method Swizzle on iPhone device
- How can my iPhone Objective-C code get notified of Javascript errors in a UIWebView?
- how to get rowNum like column in sqlite IPHONE
- UISlider to control AVAudioPlayer
- Save Photos to Custom Album in iPhones Photo Library
- Core Data and Core Location
- long polling in objective-C
- How to Get time difference in iPhone
- Xcode – update ViewController label text from different view
- Issue With Code: Format string is not a string literal [duplicate]
- How to create a round button?
- Making a UIImage to a circle form
- UITableViewCell Accessory Type Checked on Tap & Set other unchecked
- Prevent scrolling in a MKMapView, also when zooming