drawrect
How to make a Drawing method in a View class work using CGContextRef?
I have these 2 methods in the View class. the drawRect method always gets called when the view is initalized. But i can\'t get the drawLine method to work. It doesn\'t do anything when it gets called.[详细]
2022-12-25 01:25 分类:问答iPhone SDK: How to trigger drawRect on UIView subclass after orientation change?
I am subclassing a UIView and overwrite the drawRect method. I\'m noticing that the view\'s drawrect is only being called when the view first loads. After that it is never called again. How to I make[详细]
2022-12-24 14:59 分类:问答Help needed with drawRect:
I\'m having a fundamental issue with use of drawRect: Any advice would be greatly appreciated. The application needs to draw a variety of .png images at different times, sometimes with animation, som[详细]
2022-12-22 23:09 分类:问答MKAnnotationView disappearing on swipe and double-tap zoom
I have subclassed MKAnnotationView to create an annotation that basically draws a circle around a point on a map view through override of drawRect.The circle draws 开发者_Go百科fine in the following s[详细]
2022-12-20 04:48 分类:问答Applying a stroke to a rounded rect in core-graphics
I have a gradient that has rounded corners that I an using for a custom UITableViewCell background.I am trying to apply a stroke to the path but cannot quite do it, and can\'t see where I am going wro[详细]
2022-12-18 12:29 分类:问答UITableView Did Load (Done drawing the cells)
Question How can you detect when the Table View is done drawing the cells? Issue I got two labels within the contentView of an UITableViewCell. The size of these labels are dynamic. I was able to d[详细]
2022-12-17 23:05 分类:问答Problem with setNeedsDisplayInRect (quartz2d, iPhone)
I have written a function that draws x number of squares in a random position every 2 seconds. A square cannot be drawn in the same position twice. Once the app has completed a cycle the grid will be[详细]
2022-12-16 10:16 分类:问答Drawing a CGLayer outside the method drawRect: faster?
I\'m not really sure, what am I asking... ...but if make layer composites in separate methods, and draw them to the view also outside of the drawRect: method... ...then could my app performance get r[详细]
2022-12-16 05:34 分类:问答Static images in drawRect or in reuse cell method?
I was testing adding a static image in an reused cell vs drawing it开发者_高级运维 in the cell with drawrect method. I tested both methods and it seems drawing the image every time the cell gets in di[详细]
2022-12-15 06:16 分类:问答Drawing squares on Flex Canvas
I\'m trying to write some code to an animated images of squares on a Flex Canvas.There\'s something wrong with my code below because it becomes progressively slower.I assume I\'m supposed to clear the[详细]
2022-12-14 22:48 分类:问答