On Mon, 06 Jun 2011 14:31:28 -0700, Development developm...@fornextsoft.com
said:
According to like a million examples... If I place the follow bit of code in a
view's drawRect: method I should get a line from pointA to pointB however I
get nothing.
What I would suggest you do is start with
Hmm... it looks like it does draw the line... way off in the ether
somewhere...
I think I drew in the global coord system not the local to the view
Are you sure you are _not_ calling drawRect yourself, but let the system call
it when needed?
If a view needs to be redrawn, the system sets up
I'm really loosing faith in my ability to read simple english
According to like a million examples... If I place the follow bit of code in a
view's drawRect: method I should get a line from pointA to pointB however I get
nothing.
How can subclassing UIView be this difficult? I have turned off
On Jun 6, 2011, at 2:31 PM, Development wrote:
I'm really loosing faith in my ability to read simple english
According to like a million examples... If I place the follow bit of code in
a view's drawRect: method I should get a line from pointA to pointB however I
get nothing.
How can
How do you know you are getting an empty path? Did you put a breakpoint in the
code and step through with the debugger?
Is it possible you forgot to assign the view class in IB?
--Andy
On Jun 6, 2011, at 2:31 PM, Development developm...@fornextsoft.com wrote:
I'm really loosing faith in my
Hmm... it looks like it does draw the line... way off in the ether somewhere...
I think I drew in the global coord system not the local to the view
On Jun 6, 2011, at 2:37 PM, David Duncan wrote:
On Jun 6, 2011, at 2:31 PM, Development wrote:
I'm really loosing faith in my ability to read
Something along the line of [self convertPoint:aPoint fromView:nil] should do
the trick, if you’re very sure that the points were global. Hope it helps.
-ev
On Jun 7, 2011, at 05:51, Development wrote:
Hmm... it looks like it does draw the line... way off in the ether
somewhere...
I think
If you are unsure, I would start with the line from 0,0 to
bounds.size.width,bounds.size.height.
On Jun 6, 2011, at 2:51 PM, Development wrote:
Hmm... it looks like it does draw the line... way off in the ether
somewhere...
I think I drew in the global coord system not the local to the view