I found CGPathCreateCopyByStrokingPath on iOS 5.0 quite convenient to use but it is available on iOS 5 and later.
Is there any simple way to achieve the same path copying on iOS 4?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use this, which is compatible across IOS5 and IOS4+. It works 100% if you use the same fill + stroke color. Apple’s docs are a little shady about this – they say “it works if you fill it”, they don’t say “it goes a bit wrong if you stroke it” – but it seems to go slightly wrong in that case. YMMV.