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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:38:01+00:00 2026-06-09T14:38:01+00:00

When i try to add ATMHud to uitableviewcontroller subview it does work but it

  • 0

When i try to add ATMHud to uitableviewcontroller subview it does work but it doesn’t disable the scrolling and if the tableview is not on top i can’t see the hud view. What i did was added to teh tabBarController.view that works but i want find out if this is a good idea or later on i might have issues with it.

Another question is tabBarController.view frame is that the whole screen or just the bottom part. How come atmhud shows in the middle of the screen?

Thanks in advance!

Yan

============
Found a blog post that shows how to reset self.view and add tableview separately in uitableviewcontroller

UITableViewController and fixed sub views

- (void)viewDidLoad {
    [super viewDidLoad];

    if (!tableView &&
        [self.view isKindOfClass:[UITableView class]]) {
            tableView = (UITableView *)self.view;
    }

    self.view = [[[UIView alloc] initWithFrame:
        [UIScreen mainScreen].applicationFrame] autorelease];
    self.tableView.frame = self.view.bounds;
    self.tableView.contentInset = UIEdgeInsetsMake(44.0, 0.0, 0.0, 0.0);
    [self.view addSubview:self.tableView];

    UIView *fixedBar = [[UIView alloc] initWithFrame:
        CGRectMake(0.0, 0.0, self.view.bounds.size.width, 44.0)];
    fixedBar.backgroundColor = [UIColor colorWithRed:
        0.0 green:1.0 blue:0.0 alpha:0.7];
    [self.view addSubview:fixedBar];
    [fixedBar release];                       
}

After this when add hud to self.view you will be able to disable the tableview on the bottom.
Let me know if this a good way to setup the 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-06-09T14:38:02+00:00Added an answer on June 9, 2026 at 2:38 pm

    The problem with using the tab bar is that the hud is now modal, and the user cannot change the tab.

    It sounds like the tableview is not your primary viewm, as it can get “covered up”. If its not the primary view, then add the ATMHud to self.view. If the tableView is the same as self.view, then add a new transparent view to it, then add the HUD to that view.

    The tabBarController.view is the view that hosts the tabbed views – if you want to see its size (or frame) log it using NSStringFromCGRect(self.tabBarController.frame);

    EDIT: I just did a test, the ATMHud DOES block the UI. All I can think of is that you have not inserted it where you need to (at the top of current view’s subviews.) I have a demo project where I do this:

    hud = [[ATMHud alloc] initWithDelegate:self];
    [self.view addSubview:hud.view];
    [hud setCaption:@"Howdie"];
    [hud setActivity:YES];
    [hud show];
    [hud hideAfter:5];
    

    A button under the hud is not active – in fact nothing in the view is active (probably the Nav Bar would be live though)

    If you want an ARCified and field tested version, you can grab it here

    EDIT2: The solution to your problem is below. Note that ATMHud blocks clicks from getting to the table, and the code below stops the scrolling:

    - (void)hudWillAppear:(ATMHud *)_hud
    {
        self.tableView.scrollEnabled = NO;
    }
    - (void)hudDidDisappear:(ATMHud *)_hud
    {
        self.tableView.scrollEnabled = YES;
    }
    

    Dump the views:

    #import <QuartzCore/QuartzCore.h>
    
    #import "UIView+Utilities.h"
    
    @interface UIView (Utilities_Private)
    
    + (void)appendView:(UIView *)v toStr:(NSMutableString *)str;
    
    @end
    
    @implementation UIView (Utilities_Private)
    
    + (void)appendView:(UIView *)a toStr:(NSMutableString *)str
    {
        [str appendFormat:@"  %@: frame=%@ bounds=%@ layerFrame=%@ tag=%d userInteraction=%d alpha=%f hidden=%d\n", 
            NSStringFromClass([a class]),
            NSStringFromCGRect(a.frame),
            NSStringFromCGRect(a.bounds),
            NSStringFromCGRect(a.layer.frame),
            a.tag, 
            a.userInteractionEnabled,
            a.alpha,
            a.isHidden
            ];
    }
    
    @end
    
    @implementation UIView (Utilities)
    
    + (void)dumpSuperviews:(UIView *)v msg:(NSString *)msg
    {
        NSMutableString *str = [NSMutableString stringWithCapacity:256];
    
        while(v) {
            [self appendView:v toStr:str];
            v = v.superview;
        }
        [str appendString:@"\n"];
    
        NSLog(@"%@:\n%@", msg, str);
    }
    
    + (void)dumpSubviews:(UIView *)v msg:(NSString *)msg
    {
        NSMutableString *str = [NSMutableString stringWithCapacity:256];
    
        if(v) [self appendView:v toStr:str];
        for(UIView *a in v.subviews) {
            [self appendView:a toStr:str];
        }
        [str appendString:@"\n"];
    
        NSLog(@"%@:\n%@", msg, str);
    }
    
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to add a JMenuBar to my frame in Mac, it doesn't
I try to add a subview(which is a subclassed UIViewController's view, consists of several
I have done an layout in my GUI but it did not work ,
I try to add admob, but I have some problem with it. This is
I try to add an addons system to my Windows.Net application using Reflection; but
i try to add facebook like button on my root domain that will like
I try to add the android coverflow in my own android projet when myt
I try to add dots between the page title and the page number in
I try to add Message.framework to my project frameworks directory. After that I compile
I try to add a class to a td-element using javascript with the internet

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.