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

  • Home
  • SEARCH
  • 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 4533364
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:08:48+00:00 2026-05-21T14:08:48+00:00

When you open Mail on an iPhone and tap Edit, select an email and

  • 0

When you open Mail on an iPhone and tap Edit, select an email and tap Move, a UITableView appears with all the folders you can put the mail in. At the top is a transparent view that shows the email you selected. When you move your finger down, the view stays in place, when you move it up, the cells are visible through the transparent view.

How did apple configure this view? I thought of two ways, but they both don’t work:

  • The view is returned as the header view of the UITableView. Doesn’t work because the view stays at the top even if the table view is moved down.

  • The view is static at the top, the frame of the table view starts at the bottom of the transparent view. This doesn’t work because when the table view is moved up, it is visible through the transparent view.

Any ideas on how to recreate this effect?

  • 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-21T14:08:49+00:00Added an answer on May 21, 2026 at 2:08 pm

    You need to create your transparent view and then add it as a subview to the view controller so it’s a sibling of the UITableView. You would do this in the viewDidLoad() method.

    - (void)viewDidLoad
    {
        int viewHeight = 50;
    
        // Assume myTableView is a UITableView variable
        myTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 44) style:UITableViewStylePlain];
        myTableView.scrollIndicatorInsets = UIEdgeInsetsMake(viewHeight, 0, 0, 0);
        myTableView.contentInset = UIEdgeInsetsMake(viewHeight, 0, 0, 0);
    
        UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,viewHeight)]; 
    
        // Configure your view here.
        myView.backgroundColor = [UIColor colorWithRed:0.0 green:0.7 blue:0.8 alpha:0.75];
    
        [self.view addSubview:myTableView];
        [self.view addSubview:myView];
        [myView release];
    
    }
    

    You could also setup your view using an XIB, but I’ll leave that as an exercise for you.

    Edit: Removed the requirement for the the UITableView delegate methods and custom header view by using the contentInset property instead.

    Note: see additional comments below.

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

Sidebar

Related Questions

I have send an attachment through iPhone application. But when I see the mail,
I am creating an iPhone app where the user can send their work in
hi i am new to iphone. what i need id i have to open
I'm using open source component to retrieve emails from my mail server using vb.net
i have created a form that can send and email with a specified attachment,
I am trying to access the Mail App's emails button (iPhone Mail App's emails
I want to show keyboard when mail composer open without take any action.i mean
I'd like to open a new email page, in Lotus Notes (I know I
I want saved email addresses of different users, and I want to open mailBox's
I am just use the code how to direct open Gmail mail composer in

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.