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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:05:54+00:00 2026-06-12T20:05:54+00:00

Possible Duplicate: Transparent Modal View on Navigation Controller I want to make my viewController

  • 0

Possible Duplicate:
Transparent Modal View on Navigation Controller

I want to make my viewController with transparent backgroundColor but i don’t have any luck..

I’ve tried to set/use…

  • self.view.backgroundColor = [UIColor clearColor]; – still I have white colored background.
  • self.view.alpha = .0f; – all my thing in my VC are missing but i still have white background
  • self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:.7f] and still white background below my transparent view.

EDIT1:

Tested on:

  • iPad3, iOS 6.0
  • iPad 6.0 Simulator
  • 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-12T20:05:55+00:00Added an answer on June 12, 2026 at 8:05 pm

    After little more researching I’ve found this approach:

    Original code:

    MyViewController *popUpViewController = [[MyViewController alloc] init];
    [self presentModalViewController:popUpViewController animated:YES];
    [popUpViewController release];
    

    Modified code:

    TTPopUpViewController *popUpViewController = [[TTPopUpViewController alloc] init];
    popUpViewController.modalPresentationStyle = UIModalPresentationFormSheet;
    [self presentModalViewController:popUpViewController animated:YES];
    [popUpViewController release];
    

    So as you can see i’ve using modalPresentationStyle property on my ViewController which I wan’t to present, right before call presentModalViewController:animated:

    NOTE: My ViewController view have size of {680, 700}

    It present my ViewController view with size of {540, 620} and because my original size bigger I have parts my borders and shadows hidden but with little modification of my view look and feel it will be okay.

    However this approach seems to give me what I want.

    ========

    For more information please refer to following Apple documentation:

    UIViewController Class Reference

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

Sidebar

Related Questions

Possible Duplicate: How to Set Opacity (Alpha) for View in Android i want to
Possible Duplicate: how to make surfaceview transparent I am trying to make a custom
Possible Duplicate: ImageButton doesn’t highlight on click with Transparent background I have made a
Possible Duplicate: I am making some parts of java image transparent by some code,
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: How can I convert a list<> to a multi-dimensional array? I want
Possible Duplicate: How to do the vector of sets in C++? I want to
Possible Duplicate: check whether internet connection is available with C# I just want to
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: Any reason my Facebook LIKE used to display a normal BOX and

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.