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 9286211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:21:39+00:00 2026-06-18T19:21:39+00:00

I’m looking for some direction to help achieve a specific capability in my app.

  • 0

I’m looking for some direction to help achieve a specific capability in my app.

It’s a little hard to explain, but here goes. Although I’m visualizing my goal using a multi-layer metaphor (a la Photoshop), this is just to explain my vision – I realize that may not be reasonable in practice.

I envision 3 “layers”

  1. A bottom layer that contains an image
  2. Another layer on top – say a 50% gray – but at reduced opacity so the original layer is still visible but de-emphasized.
  3. Then two square objects on the top layer, each acting as a “window” through the gray layer, down to the original layer and so –
    through these windows, you get to see part of the original image at
    full opacity.

Finally, need to be able to drag each window around the screen with a finger, to independently reposition each one.

Extra credit would be if each window could be adjusted in size (not shape – still square) ideally using a finger gesture of some kind.

I’m not looking for code (although I wouldn’t object). I’m looking for an approach to doing this in Objective-C that ideally doesn’t require me digging into advanced topics such as some of the graphics frameworks.

Thanks!
Tony.

  • 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-18T19:21:40+00:00Added an answer on June 18, 2026 at 7:21 pm

    Here’s a rough outline of what I would try.

    I would use 2 view (not layers). The bottom most view would be the image view.

    The top view would be a custom view. This custom view would have two other views as subviews. These two subviews would represent the two “holes”. Setup both subviews with their own gesture recognizers to handle panning and zooming. Give both of the subviews (and the container view) a clear background and possibly a border. The main view of this custom view would need to have its drawRect: method implemented. The implementation would draw the partially transparent grey background. It would use the position and size of the two subviews to setup clipping regions before drawing the grey color.

    Every time the 2 subviews are sized or moved you would need to call setNeedsDisplay on the container view so the drawRect: method is called to refresh the grey background with the holes.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
This could be a duplicate question, but I have no idea what search terms
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

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.