Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-05-2010, 02:41 PM   #3 (permalink)
davidgilmour
Registered Member
 
Join Date: Dec 2008
Posts: 5
davidgilmour is on a distinguished road
Default

Quote:
Originally Posted by Kroupy View Post
I'm not quite sure, but when do you change the color? It sounds obvious, but try changing it just before you draw the line. That means change the color three times. Or are all three lines always colored like the last color?
Yeah, well that goes without saying but as you mention, all lines get the last stroke color I set.

I found this post and it helped me figure this one out:
Changing colors with CGContextStrokePath - Stack Overflow

You have to end your contentstrokepath, as if you're saying that "this line ends here", before you can call your new line a separate line :-)

Problem solved - thanks for your reply!
davidgilmour is offline   Reply With Quote
 

» Advertisements
» Online Users: 508
16 members and 492 guests
AppsBlogger, Apptronics RBC, baja_yu, BuzzingDanZei, Domele, dre, givensur, HemiMG, iNet, jpremo12345, linkmx, Paul Slocum, PixelEnvision, PowerGoofy, shwetap, speed4mee
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,427
Threads: 94,023
Posts: 402,572
Top Poster: BrianSlick (7,978)
Welcome to our newest member, shakiraeb60
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:34 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.