cgcontext
Strange problem with line drawing on iPad
I have a task to draw a separator line with 2px height between UIView cells. Top 1px high line should have color #F1F1F1 and bottom 1px high line should have color#DDDDDD[详细]
2023-03-17 15:20 分类:问答iPhone App - Why do my CGContext circles look like black squares?
What is wrong with this drawRect method in my iPhone app custom UIView class? It\'s supposed to draw a colored circle, however it draws a black square of proper width and height.[详细]
2023-03-17 06:45 分类:问答How to draw string in other device orientations using CGContext iOS
I\'m trying to draw some text on the iPhone, but in landscape mode, where the home button is on the left. So I need to somehow twist the numbers (I\'m guessing I use a transform) ?[详细]
2023-03-17 02:25 分类:问答iOS Draw Rectagle with curved ends
Imagine a long rectangle (maybe with size 200x20). All sides have straight edge开发者_C百科s. In my iOS app, this is easy for me to draw:[详细]
2023-03-17 00:10 分类:问答CGPath occupying more memory
This is a very much daunting challenge I have ever faced. Im drawing lines when the finger is moved. The lines are created such that they bypass the imageviewspresnt in my drawingview. I`m using below[详细]
2023-03-16 15:19 分类:问答Memory consumption spikes when resizing, rotating and cropping images on iPhone
I have an \"ImageManipulator\" class that performs some cropping, resizing and rotating of camera images on the iPhone.[详细]
2023-03-16 09:32 分类:问答Drawing to context on background thread
I have a UIView which has to display some information. Since this view is quite complex and the drawing takes a substantial amount of time, I have moved this to a background thread to avoid blocking t[详细]
2023-03-15 12:07 分类:问答Drawing dashed and continuous lines
I need to draw lines; some are dashed and others are continuous. I cannot know which are dashed and which are not. When I draw the dashed lines, I use this:[详细]
2023-03-12 06:45 分类:问答How to get rid of this "points" between my lines when I am drawing?
is there an easy way to not draw this points in my lines? I don\'t know why this points are there because i never release my finger from screen during drawing of a line.[详细]
2023-03-10 18:03 分类:问答How do I draw on a persistent canvas and paint it inside a view?
I\'m writing a small painting app for iOS. I\'m subclassing a UIView ad performing computations inside its drawRect: method. It\'s been all good until I started having lots of objects (actually polyli[详细]
2023-03-10 02:39 分类:问答