Core Graphics pattern is only drawn when wantsLayer is YES
| Originator: | jfahrenkrug | ||
| Number: | rdar://11474935 | Date Originated: | 2012-05-17 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.7.4 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When creating a pattern with CGPatternCreate and CGContextSetFillPattern, the pattern is only drawn with the view's wantsLayer property is set to YES. Steps to Reproduce: 1. Check out https://github.com/jfahrenkrug/QuartzPatternBugDemo 2. Build and Run -> Pattern shows up. 3. Edit SPWKAppDelegate.m, change line to: _scrollView.wantsLayer = NO; 4. Build and Run -> Pattern does not show up. Expected Results: Pattern should show up regardless of wansLayer being set or not. Actual Results: Pattern only shows up when wantsLayer is YES.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!