Skip to content

drawInContext should use frame rather than bounds #4

Description

@bbqz007

when you overload the drawInContext , you should use coordinate based on frame rather than bounds.

if you want to use the coordinate based on bounds, you should CGContextTranslateCTM(ctx, _frame._X, _frame._Y) at the beginning of the function and CGContextTranslateCTM(ctx, -_frame._X, -_frame._Y) at the end.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions