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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:44:02+00:00 2026-05-31T23:44:02+00:00

iPhone – 5.1(9B176) I have been encountering inconsistent behaviour in overlaying a mask view

  • 0

iPhone – 5.1(9B176)

I have been encountering inconsistent behaviour in overlaying a mask view on top of a UITableViewController as shown in picture below. Anyone encountered this behaviour, if yes, please suggest any solutions used?

Partially masked view on top of UITableViewController

Below is the code i have used to add mask view:

//Add the overlay view.
if(ovController == nil) {
    NSString *cellIdentifier = @"overlayVC";
    ovController = [[self storyboard] instantiateViewControllerWithIdentifier:cellIdentifier];
}

CGFloat yaxis = self.navigationController.navigationBar.frame.size.height;
CGFloat width = self.view.frame.size.width;
CGFloat height = self.view.frame.size.height;

CGRect frame = CGRectMake(0, yaxis, width, height);
ovController.view.frame = frame;
ovController.view.alpha = 0.85;
ovController.delegate = self;

UIView *aboveView = self.parentViewController.view;

[self.tableView insertSubview:ovController.view aboveSubview:aboveView];

I have also tried

`[self.tableView insertSubview:ovController.view aboveSubview:self.tableView]`
  • 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-31T23:44:03+00:00Added an answer on May 31, 2026 at 11:44 pm

    Hi use something like below code

    -(void) showLoadingView {
    
    //NSLog(@">>>>>>>>>>>>>>>>> loading view Landscape right ");
    if (loadView == nil) {
        loadView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 480.0)];
        loadView.opaque = NO;
        loadView.backgroundColor = [UIColor clearColor];
        //loadView.alpha = 0.8;
    
        viewBack = [[UIView alloc] initWithFrame:CGRectMake(95, 230, 130, 40)];
        viewBack.backgroundColor = [UIColor blackColor];
        viewBack.alpha = 0.7f;
        viewBack.layer.masksToBounds = NO;
        viewBack.layer.cornerRadius = 8; 
    
        spinningWheel = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(5.0, 5.0, 30.0, 30.0)];
        [spinningWheel startAnimating];
        //        spinningWheel.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
        [viewBack addSubview:spinningWheel];
        [spinningWheel release];        
    
        UILabel *lblLoading = [[UILabel alloc] initWithFrame:CGRectMake(23, 6, 110, 25)];
        lblLoading.backgroundColor = [UIColor clearColor];
        lblLoading.font = [UIFont fontWithName:@"Helvetica-Bold" size:16.0];
        lblLoading.textAlignment = UITextAlignmentCenter;
        lblLoading.textColor = [UIColor whiteColor];
        lblLoading.text = @"Loading...";
        [viewBack addSubview:lblLoading];
        [loadView addSubview:viewBack];
    }    
    
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        loadView.frame = iphoneFrame;
        viewBack.frame = loadiPhone;        
    }
    else
    {
        loadView.frame = ipadFrame;  
        viewBack.frame = loadiPad;
    }
    
    [self.window addSubview:loadView];
    

    }

    -(void) hideLoadingView {

    [loadView removeFromSuperview];
    

    }

    declare this methods in you APPdelegate class so you can call it from any view in your code.

    here i have set a view over the window not in view this surelu solve your problem!!!!

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

Sidebar

Related Questions

iPhone version - 5.1 (9B176) Below is the series of events during Local Notification
iPhone SDK question for you. I've created a UIViewController category to shift a view
(iPhone SDK 3.x:) I have a UIControl subclass that creates a different number of
iPhone Safari seems to have some sort of problem whereby a page with css
in iphone i have requirement of store image in cache . but how i
iPhone: How do you suspend the screen saver-fader to have an app run for
iPhone n00b here, although I do have an app in the store. I have
The iPhone SDK 3.0 has been in beta for a few months, so I
My iphone App shows a table view having list of 6000 items. (these items
iPhone Development: I want to have an infinite loop constantly checking an NSMutableArray 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.