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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:34:32+00:00 2026-06-18T04:34:32+00:00

I would like to implement a drawer that operates like in iPhone Game Center

  • 0

I would like to implement a drawer that operates like in iPhone Game Center app. When you pull a UITableView then providing that we have reached the top of the table there is this drawer sliding that shows more content.

I tried a few solutions here, all of them kinda work but I can’t recreate the same functionality as in Game Center example. I tried to embed a UITableView inside a UIScrollView – this scroll view has one view on top that plays the drawer role and a tableView beneath. I setup the UIScrollViewDelegate for both my big scrollView and a tableView and managed to synchronize contentOffsets of both. I have disabled scrollBars for my big scrollView so I can only see scrollBars from my tableView.

Then I tried with setting a tableView as a subview of the whole view and setting another view – a drawer view as a subview of the same view and again played with UIScrollViewDelegate of the tableView to adjust frames of both views.

Both solutions kinda work but it is not what I was looking for. What I consider the biggest flaw of both solutions is that when I pull my tableView to reveal the drawer I can see clearly that I am not interacting with my tableView scrollView because the scrollBars stay on top in the same position during the whole dragging process. When the drawer is fully expanded I can now interact with tableView scrollView (tableView content scrolls and scrollBars are moving)

If you look at attached pictures you can see that in Game Center app scrollBars are moving when the drawer is expanded. It’s like the drawer is a part of the tableView’s scrollView but when fully expanded stops moving and if I keep pulling this tableView I get more space between the tableView and the drawer. If you push the tableView up in order to hide the drawer the scrollBar goes down.

I would like to implement a drawer that operates like in iPhone Game Center app. When you pull a UITableView then providing that we have reached the top of the table there is this drawer sliding that shows more content.

I would like to replicate a viewController like this in Game Center. If anyone knows how to do it than please share the solution.

You can see the screenshots here:

https://i.stack.imgur.com/O44IS.png

https://i.stack.imgur.com/qDf7v.png

Thanks

Adam

  • 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-18T04:34:33+00:00Added an answer on June 18, 2026 at 4:34 am

    I think I found exactly how they did it in Game Center app. My solutions works the same and is very simple to implement.

    First I made a UITableViewController subclass added a UIView property called “blueView” and made some adjustments to tableView property:

    - (void)viewDidLoad
    {
        [super viewDidLoad];
    
        self.blueView = [[UIView alloc] initWithFrame:CGRectMake(0.0, -100.0, 320.0, 100.0)];
        self.blueView.backgroundColor = [UIColor blueColor];
    
        [self.tableView addSubview:self.blueView];
        [self.tableView setContentInset:UIEdgeInsetsMake(100.0, 0.0, 0.0, 0.0)];
        [self.tableView setScrollIndicatorInsets:UIEdgeInsetsMake(100.0, 0.0, 0.0, 0.0)];
    
    }
    

    Then in - (void)scrollViewDidScroll:(UIScrollView *)scrollView method I am adjusting the view according to scrollView.contentOffset.y so it stays always on top.

    - (void)scrollViewDidScroll:(UIScrollView *)scrollView
    {
    
        if (scrollView.contentOffset.y < -100) {
            self.blueView.frame = CGRectMake(0.0, scrollView.contentOffset.y, 320.0, 100.0);
        } else {
            self.blueView.frame = CGRectMake(0.0, -100.0, 320.0, 100.0);
        }
    }
    

    Voila! Maybe that will save somebody’s time.

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

Sidebar

Related Questions

I would like to implement a function with R that removes repeated characters in
We would like to implement a web form that automatically saves content at regular
I would like to implement google analitycs on a website that's a mix of
I would like to implement a URL rewrriter for DotNetNuke. Have questions as to
I would like to implement a Plug-In framework for a C# application; such that
We would like to implement a policy that will force developers to commit only
I would like to implement this feature(changing HSL with that colorize ticked) in Python,
I would like to implement a tool that generates graphs whose memory will be
I would like to implement a ListView that is automatically updated with any changes
I would like to implement chat functionality in my app. I found XMPPframework which

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.