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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:14:01+00:00 2026-06-19T00:14:01+00:00

I created a TransformView subclassing UIView in order to support a double-sided view which

  • 0

I created a “TransformView” subclassing UIView in order to support a double-sided view which I am using in a flip animation. This has been suggested in other posts, eg:

How to rotate a flat object around its center in perspective view?

@interface TransformView : UIView
@end

@implementation TransformView
+ (Class)layerClass {
  return [CATransformLayer class];
}
@end

It all works fine, but I get a warning every time I create a TransformView object using:

TransformView *newTransformView=[[TransformView alloc] initWithFrame:frame];

The warning says:

– changing property opaque in
transform-only layer, will have no effect

I guess the UIView class is initialising the opaque property which is usually fine for a CALayer but not a CATransformLayer.

Is the subclassing code quite dodgy? If so, how else can you create a 2-sided view for flip animations?

Any ideas for how to stop the warning?

I have a suspicion that creating a TransformView from a nib file rather than initWithFrame avoids the warning, but is seem cludgy to have to do this just to avoid the warning.

  • 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-19T00:14:02+00:00Added an answer on June 19, 2026 at 12:14 am

    Your can avoid the warning by adding this extension somewhere in your code:

    @implementation CATransformLayer (MyExtension)
    -(void)setOpaque:(BOOL)opaque
    {
        return;
    }
    @end
    

    Of course this will also stop the warning for your own mistaken attempts to set the opaque property of a CATransformLayer.

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

Sidebar

Related Questions

I created a JButton which has an image set as an icon representing the
Created using Sphinx 0.6.5. I know Python's documentation uses reStructuredText , but it has
I created my own build.xml which has: <target name=compile> <mkdir dir=build/> <javac destdir=build> <src
I created a UIView Subclass and are using drawing rounded rects with UIBezierpath and
Created a simple jquery-nivo-like slider using wpf and want to add an animation between
I created an app which has two targets, a lite version and a full
I created a python server on port 8000 using python -m SimpleHTTPServer . When
I created a PHP Drop Down which is populated from a MySql Database and
Created a simple Webapp using maven: mvn archetype:generate -DgroupId=com.kids -DartifactId=kidsMaven -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false My POM
Created new scaffold Users that has fields name & description All working as suppose

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.