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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:23:37+00:00 2026-05-31T09:23:37+00:00

I am presenting a View to the screen like this: imageLayer.alpha=0; imageLayer.image = nil;

  • 0

I am presenting a View to the screen like this:

imageLayer.alpha=0;
imageLayer.image = nil;
[self presentModalViewController:sampleView animated:YES];

The issue I am having is that the contents of imageLayer (which is a UIImageView) appear upside down and backwards in sampleView when it loads. The layer inside sampleView that contains the contents of imageLayer is a custom UIView that caches portions of the screen as a bitmap using: CGBitmapContextCreate. In trying to troubleshoot this I’ve found that if imageLayer is not present the problem disappears. Above I’ve tried setting the alpha to 0 and image to nil (which removes it from the screen before presentModalViewController fires). Why would the image show up backwards and upside down in a separate view?

  • 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-05-31T09:23:38+00:00Added an answer on May 31, 2026 at 9:23 am

    In SampleView I was using CGBitmapContextCreate but I was not sending NULL as the first parameter (I had copied some code from the net and it had a value in there) Once I set NULL as the first value the problem went away.

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

Sidebar

Related Questions

I'm getting a white screen after presenting a modal view controller. This is how
In my application mainviewcontroller is pushing modalviewcontroller by using this [navigationController pushViewController:_viewController animated:YES]; For
I am presenting a TTWebController as a Modal View using this code: TTNavigator* navigator
In my iPhone app, I'm presenting a modal view controller from a home screen
So I am presenting a full screen modal view when the user selects an
I have a modal view controller that I am presenting on iPad via: vc.modalPresentationStyle
I have two instances of NSScrollView both presenting a view on the same content.
Before I start I should say I know this seems like a long shot,
I'd like to scale an image up to take up the entire size of
I am presenting a modal view controller. If it matters, it is scrolling up

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.