-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I've been trying to figure out how to draw a shadow for an UIView that was added inside a UIView with addSubview.
I searched online and read the docs, but the Apple docs simply draw new shapes as shown below. I want to use the Core Graphics to add a shadow to the UIView, but am unsure how to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a uiview class and i want to switch to other uiview class but without using addsubview
is there any other way to do that except the one (addSubView)
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have a UIViewController that I launch from a Xib file who's contain a UIView (0,0,320,480) and this UIView contain another UIView (0,0,320,250).
Inside my ViewController, I need to reload the second UIView bu clicking on a button, how to do that?
Thanks,
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Basically what I want to do is copy the already rendered content (a PDF drawn into the UIView's graphics context using CGContextDrawPDFPage()) onto a similar UIView, without having to re render the PDF. The idea is, that I'd then be able to perform an animated transform on the UIView and later re…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button?
For instance, at the moment I have a UIView (A) with an object at the top and an object at the bottom of the screen…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a CGBitmapContext (bitmapContext) and I would like to draw some rectangle part (rect) of it to the current CGContext (context).
Right now I do that way:
CGContextRef context = UIGraphicsGetCurrentContext();
CGImageRef cgImage = CGBitmapContextCreateImage(bitmapContext);
CGContextClipToRect(context…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am using the framework of route-me for working with locations.
In this code the path between two markers(points) will be drawn as a line.
My Question: "What code should I add if I want to add an arrow in the middle(or top) of the line, so that it points the direction"
Thanks
- (void)drawInContext:(CGContextRef)theContext
{
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I know that the CGContext cannot call it to draw directly, and it needs to fill the drawing logic in the drawInContext, and call the CGContext to draw using "setNeedsDisplay", so, I designed a cmd to execute, but it cause some problems... like this :
http://stackoverflow.com/questions/2617827/why-i-cant-draw-in-a-loop-using-uiview-in-iphone
I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All
I am showing PDF content on a view
using this code using Quartz Sample
// PDF page drawing expects a Lower-Left coordinate system, so we flip the coordinate system
// before we start drawing.
CGContextTranslateCTM(context, 0.0, self.bounds.size.height);
CGContextScaleCTM(context, 1.0…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm overriding the drawRect: method in a custom UIView, and I'm doing some custom drawing. All was going well, until I needed to draw a PDF resource (a vector glyph, to be precise) into the context. First I retrieve the PDF from a file:
NSURL *pdfURL = [NSURL fileURLWithPath:[[[NSBundle mainBundle]…
>>> More