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
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.
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) ?
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:
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
I have an \"ImageManipulator\" class that performs some cropping, resizing and rotating of camera images on the iPhone.
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
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:
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.
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