Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7598121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:19:46+00:00 2026-05-30T22:19:46+00:00

Inside drawRect, I drew few dashed lines after setting the dash pattern etc. Now

  • 0

Inside drawRect, I drew few dashed lines after setting the dash pattern etc.
Now once I stroke this path I need to draw normal lines, what should I do ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:19:47+00:00Added an answer on May 30, 2026 at 10:19 pm

    Sets the pattern for dashed lines in a graphics context.

    void CGContextSetLineDash (
       CGContextRef c,
       CGFloat phase,
       const CGFloat lengths[],
       size_t count
    );
    

    Parameters
    …

    lengths

    An array of values that specify the lengths of the painted segments and unpainted segments, respectively, of the dash pattern—or NULL for no dash pattern.

    For example, passing an array with the values [2,3] sets a dash pattern that alternates between a 2-user-space-unit-long painted segment and a 3-user-space-unit-long unpainted segment. Passing the values [1,3,4,2] sets the pattern to a 1-unit painted segment, a 3-unit unpainted segment, a 4-unit painted segment, and a 2-unit unpainted segment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an UIView where I was drawing some stuff inside -drawRect:. Now I
I wanted to draw different set of lines in the same loop inside drawRect
Inside VS2005, our whole programming staff gets this error message sporadically and it is
inside of my Zend_Db_Table_Rowset Object i found this: [_primary:protected] ... does anybody if theres
i'm using drawRect inside a custom UIButton to draw a bordered button with an
I didn't use subviews but painted my things with -drawRect: inside an UIView subclass.
I understand there is CGContextClearRect though that makes you clear everything inside the drawRect
Using CoreGraphics (inside my drawRect method), I'm trying to apply a blend mode to
I'm trying to load an image from a url inside of drawRect: . Our
I have a class that implements UIView and inside - (void)drawRect:(CGRect)rect method I add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.