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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:53:18+00:00 2026-06-14T03:53:18+00:00

I have a standard grouped table view. I would like to add a shadow

  • 0

I have a standard grouped table view. I would like to add a shadow around it (i.e. around the edge of each tableview section) – if you are not sure what I mean, then see the official twitter app (below) for an example. It’s pretty subtle, but it’s definitely a shadow as opposed to a border.

Twitter app

How can I achieve this effect?

Save for using images with built in shadows as each cell’s background – which won’t allow animated cell resizing like I need – I haven’t figured out a way.

  • 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-14T03:53:20+00:00Added an answer on June 14, 2026 at 3:53 am

    I needed this effect in one of my own applications the other day. It’s actually very easy to achieve by just using the CALayer shadow properties in combination with a CALayer mask. I’ve put together a simple example project at Github:

    https://github.com/schluete/GroupedTableViewWithShadows

    The effect is implemented in the UITableViewCell category UITableViewCell+CellShadows.m.

    The first step is to create a shadow rectangle. Enlarge the rectangle depending on the cell’s position in the section (top, middle, bottom) to prevent the rounded corners from being visible in the wrong corners (lines 18-23). Then add the shadow to the background view of the cell (lines 35-41).

    Now there’s a nice shadow effect, but the shadow of the first cell “bleeds” into the second cell. To prevent the bleeding just add a layer mask to cut off all the unnecessary parts of the shadow (lines 25-32 and 43-46). That’s it, we’ve got our shadow!

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

Sidebar

Related Questions

I have a standard list view setup with backbone that looks something like below.
I have a standard, grouped UITableView that I am trying to add a custom
I have a grouped UITableView . Now unlike the default table view header my
I have custom background for my standard view and my grouped uitableview which I
I have a standard table: I want to use jQuery to reformat the table,
I have a standard code like below to validate xml against xsd, but it
I have a standard form array in PHP like this. I need to account
I have a grouped UITableView that contains several cells (just standard UITableViewCell s), all
I have a web application that have standard form authentication declared, like this: <login-config>
I have standard multi-level menu like this one: <ul id=nav> <li><a href=#>Home</a></li> <li><a href=#>Dropdown</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.