के बाहर ड्राइंग मेरे पास एक UIView है जहां मैं UIView, के फ्रेम के पिछले भाग को विस्तारित करना चाहता हूं, मैंने मास्क को टॉबाउंड्स को सेट किया है - उम्मीद है कि मैं UIView की सीमाओं के बाहर अतीत खींच सकता हूं दाएं और नीचे 5 पिक्सेल।UIView
मुझे उम्मीद है कि अंडाकार फिसल नहीं पाएगा, लेकिन यह क्लिप हो जाता है और सीमाओं के बाहर नहीं खींचता है?
- (void)drawRect:(CGRect)rect
{
int width = self.bounds.size.width;
int height = self.bounds.size.height;
self.layer.masksToBounds = NO;
//// Rounded Rectangle Drawing
//// Oval Drawing
UIBezierPath* ovalPath = [UIBezierPath bezierPathWithOvalInRect: CGRectMake(0, 0, width+5, height+5)];
[[UIColor magentaColor] setFill];
[ovalPath fill];
[[UIColor blackColor] setStroke];
ovalPath.lineWidth = 1;
[ovalPath stroke];
}
मैंने कोशिश की - काम नहीं किया ... – OneGuyInDc
self.layer.masksToBounds = NO क्लिपिंग में मदद नहीं करेगा – pixelrevision