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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:16:41+00:00 2026-05-28T13:16:41+00:00

In my app, my root view is a grid view with cells. When I

  • 0

In my app, my root view is a grid view with cells. When I tap a particular cell, the modal view controller will pop up with details of that particular cell.

How can I fade out the grid view when my modal view is present?

Also, how can I dismiss the modal view when I tap anywhere in the grid view, which is behind my modal 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-28T13:16:42+00:00Added an answer on May 28, 2026 at 1:16 pm

    iOS 5 brought in a new UIViewController method, presentViewController:animated:completion: (documentation linked for you) and of course you probably already know about presentModalViewController:animated: (documentation says to use the presentViewController method in place of the older presentModalViewController, but this depends on if you are supporting iOS 5 & newer only).

    You can set animated to YES and use a fade animation, or set the parent view’s alpha closer to 0.0 (to “fade” it somewhat).

    The UIView documentation has some notes about fading things, including some sample code. Look at animateWithDuration:animations:completion:

    As for dismissing the modal view, wouldn’t dismissModalViewControllerAnimated: work?

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

Sidebar

Related Questions

I have a root view controller that opens up a new modal view controller.
I'm creating a simple app that loads a modal view in the root view
My app's root view controller supports any orientation but user can navigate to another
I've got an app that initially loads in one view controller for a period
I'm creating an app for asset catalog. In my root view controller i maintain
Here's how I set up my app. I have a root view that loads
I have an iphone app that has a root view with a button that
I have an app with a navigation controller as the root view. There are
My app starts with a root view controller. Its job is to display a
When my app gets back to its root view controller, in the viewDidAppear: method

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.