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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:04:09+00:00 2026-06-04T21:04:09+00:00

I have UIView with UIImageViews, UILabels, UITextView. My goal is to transform the middle

  • 0

I have UIView with UIImageViews, UILabels, UITextView.

My goal is to transform the middle part so it would look like folding a piece of paper:
– top and bottom parts remain the same only they slide towards eachother
– middle part folds towards the screen
(as in Clear app: http://blog.massivehealth.com/post/18563684407/clear?cbe4fc38)

My idea was to first load whole view, then split into 4 parts, make middle two parts into CGImage and somehow animate them with perspective while simultaneously transforming top and bottom parts, so they slide towards eachother (in the end, middle two parts should become invisible).

I also should be able to unfold this view and scroll UITextView.

I’m not looking for a ready-to-go answer, just pointers towards correct solution.
I have came across CALayer, CABasicAnimation and CGImage, but yet don’t know how to solve this one.

  • 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-04T21:04:10+00:00Added an answer on June 4, 2026 at 9:04 pm

    A few pointers:

    1. convert your UIView into an image: see this post; either you take 4 “snapshots” of your view, or:

      1.2 you take one, then crop the resulting image (see here for cropping);

    2. create a new view and add 4 CALayers as sublayers of self.layer; each layer has its contents property set to the corresponding UIImage;

    3. animate the view layers as you need; have a look at this file from the Leaves framework to see how this could be done; basically, this code uses a CATransaction and transformations to animate a property of the layers (which in this case represents the position of one layer respect another), so that when that property value changes, the layers are redrawn accordingly.

    Hope it helps.

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

Sidebar

Related Questions

I have a UIView, it is not inside UIScrollView. I would like to move
I have a UIView that has several UIImageViews as subviews. Each of these subviews
I have UIScrollView and number of objects (UIView compositions) with UIImageViews inside them. Some
I have a UIView (mainview), including 50 UIImageViews (image1 .. 50)) (all are set
I would like to perform a simple animation on a series of UIImageViews in
I'm trying to create an animation that would look like 2 french doors (or
Currently I have 52 cards UIImageViews in IB UIView. And my objective is to
I have a UIView containing 2 UIImageViews - a frame and a picture behind
I have a view hierarchy that looks something like this: UIView (A) UIView >
I have an UIView with many UIImageViews as subviews. The app runs on iOS4

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.