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

  • SEARCH
  • Home
  • 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 8875139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:54:07+00:00 2026-06-14T18:54:07+00:00

Here is a picture: Is there a way to expand layer (the area where

  • 0

Here is a picture:

enter image description here

Is there a way to expand layer (the area where you draw), to be larger.
At first i thought that (0,0) is the center, but it seems that it is a starting point for layer.
I was planning to draw content at (0,0) then to translate it as necessary.

Or, must i draw whatever i have in center of layer (width/2, height/2) and then translate as necessary?

EDIT_01:
The offset of layer is made by panning gesture recognizer. That is on purpose, since app must have panning of content.

  • 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-06-14T18:54:08+00:00Added an answer on June 14, 2026 at 6:54 pm

    Answers

    At first i thought that (0,0) is the center, but it seems that it is a starting point for layer

    (0,0) in iOS begins at the top left of the layer, and gets greater going right and down. In OS X, (0,0) begins in the bottom left, and gets greater going right and up.

    Is there a way to expand layer (the area where you draw), to be larger

    The question I have is, do you need to? This can have performance issues, as you’re rendering and storing drawing data when you don’t really need to, causing more memory to be used. It looks like your layer is filling the screen correctly, it’s just translated incorrectly. If you move it to the correct place, you shouldn’t need to expand the layer off screen.

    This doesn’t mean you can’t translate other layers off screen, of course you can. But really you don’t want to expand the size of your drawing area to expand off screen.

    Must i draw whatever i have in center of layer (width/2, height/2) and then translate as necessary?

    If you want them drawn into the center, then yes. You can create your own method to translate your own co-ordinate space into the co-ordinate space of the layer, to make this easier for you.

    Documentation

    I’d suggest reading this, to get a greater grasp of the geometry workings of CALayer:
    https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Layers.html#//apple_ref/doc/uid/TP40006082-SW1

    …and this to get an understanding of drawing techniques:
    https://developer.apple.com/library/ios/#documentation/graphicsimaging/conceptual/drawingwithquartz2d/dq_layers/dq_layers.html

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

Sidebar

Related Questions

Is there a way to disable that annoying balloon notification that pops up when
is there a way, to make a picture transparent in CF2.0? I have to
Is there a way within Flex to draw an <s:Ellipse> and use it to
I could be way overthinking this but I'm working with Wordpress for the first
I'm just looking a big picture idea here; I can google specifics once provided
Stack Trace Picture of stack trace here Values aren't being passed to the other
I have my signed assemblies here, in one of them I have a picture
So here's my problem: I've created a custom AVCaptureSession that takes pictures. I'm not
Ok so here's the big picture, I have 2 sites, call them SiteA and
I've looked at this every way I can think... The problem is that I

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.