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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:03:12+00:00 2026-06-03T00:03:12+00:00

Could somebody explain how this app (FoodSpotting), creates their custom section header? It has

  • 0

enter image description here

Could somebody explain how this app (FoodSpotting), creates their custom section header? It has a translucent black background, image of the user, and some nice text (loaded up from a server no doubt). My 2 big questions here are:

1. How does the app get the nice black translucency on the section header?
2. How do they get that little triangle arrow attached to the header?

I can pretty much figure out everything else based on using a custom view for the section header.

  • 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-03T00:03:13+00:00Added an answer on June 3, 2026 at 12:03 am

    The Section header is a UIView just like any other. You can create it as beautiful, as complex, or as elaboarate as you like, using Interface Builder if you want, etc. Your table delegate’s tableView:viewForheaderInSection is responsible for returning it, just like it is for other cell rows.

    As to the little triangle: yeah, this threw us for a bit (we wanted something similar in our app) until we discovered that you can overlap the view with the row by “lying” about it’s height: ie tableView:heightForHeaderInSection: returns a value slight less than it actually is. May not be the “right” way, but worked very nicely for us. Like this:

    enter image description here

    So the header is actually a perfect rectangle, mostly see-through at the bottom, with a small triangle “peeking” out:

    enter image description here

    Tell iOS that the header is 80px high, like this:

    - (CGFloat) tableView:(UITableView *) tableView 
      heightForHeaderInSection:(NSInteger) section {
        return 80;
      }
    

    and it’ll start to draw the “food” row at 80px. Because headers are on top, and because most of header bottom is transparent except for arrow, you should get this effect.

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

Sidebar

Related Questions

Could somebody please explain the meaning of this error? INFO: Scanning for root resource
Could somebody kindly explain this to me, in simple words: there is no way
Could somebody please explain this to me. It seems to me that the number
Could somebody please explain this piece of Ruby code: def add_spec_path_to(args) # :nodoc: args
Could somebody explain what this bit of code means please ? I believe the
I have some problems with this syntax. Could somebody explain to me what this
could somebody please explain why this happens? I have written the following: 1) a
Could somebody explain how the following example works? I don't understand how this can
Could somebody explain what is the meaning of DomHelper in google closure? What is
Could somebody explain to me the architecture behind chatroulette? I was thinking about a

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.