{"id":34,"date":"2010-02-10T18:39:59","date_gmt":"2010-02-10T18:39:59","guid":{"rendered":"http:\/\/mitat.tuu.fi\/?p=34"},"modified":"2010-02-10T18:41:30","modified_gmt":"2010-02-10T18:41:30","slug":"dashed-solid-line-when-using-cgcontext-drawing","status":"publish","type":"post","link":"http:\/\/mitat.tuu.fi\/?p=34","title":{"rendered":"Dashed &#038; solid line when using CGContext drawing"},"content":{"rendered":"<p>To get dashed line:<\/p>\n<p>CGContextRef context = UIGraphicsGetCurrentContext();<\/p>\n<div>float dash[2]={6 ,5}; \/\/ pattern 6 times &#8220;solid&#8221;, 5 times &#8220;empty&#8221;<\/div>\n<p>CGContextSetLineDash(context,0,dash,2);<\/p>\n<p>To get back to solid line:<\/p>\n<p>float normal[1]={1};<br \/>\nCGContextSetLineDash(context,0,normal,0);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To get dashed line: CGContextRef context = UIGraphicsGetCurrentContext(); float dash[2]={6 ,5}; \/\/ pattern 6 times &#8220;solid&#8221;, 5 times &#8220;empty&#8221; CGContextSetLineDash(context,0,dash,2); To get back to solid line: float normal[1]={1}; CGContextSetLineDash(context,0,normal,0);<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4,5,3],"tags":[10],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-cocoa","category-code","category-iphone","category-objective-c","tag-iphone-cocoa-objective-c"],"_links":{"self":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":2,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":37,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions\/37"}],"wp:attachment":[{"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mitat.tuu.fi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}