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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:46:53+00:00 2026-06-16T20:46:53+00:00

I am trying to put a shadow around a thumbnail image on at tableview

  • 0

I am trying to put a shadow around a thumbnail image on at tableview cell. However, when I do it, it doesn’t render correctly as the screenshot below shows:

http://imageshack.us/photo/my-images/27/iossimulatorscreenshot7r.png/

(sorry cant embed screenshots as a new user!)

On another tableview in the app, the same code works perfectly as shown:

http://imageshack.us/photo/my-images/4/iossimulatorscreenshot7.png/

The code I am using is exactly the same for both:

ImageView.image = [UIImage imageNamed:image];
ImageView.layer.borderColor = [UIColor blackColor].CGColor;
ImageView.layer.borderWidth = 1;

The problem occurs when I try to put a shadow on the tableview too:

imageshack.us/content_round.php?page=done&l=img577/1947/iossimulatorscreenshot7.png

Any ideas?

I set up mostly everything using Storyboards, so maybe its somethings to do with that?

  • 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-16T20:46:55+00:00Added an answer on June 16, 2026 at 8:46 pm

    (from my original comment) First image looking like you’ve bordered the UITableViewCell object and not the UIImageView object inside the cell.

    It does explain it.

    Your UIImageView is not actually your image view, it’s a reference to the whole UITableViewCell which is why the border draws around the whole cell, not just the image. Since the border methods you call work on all UIView and both UITableViewCell and UIImageView happen to be sub-classes of UIView your app doesn’t crash.

    The question is… why are they wrong. How are you assigning your ImageView variable? Is it done in code or an IBOutlet? If it’s an IBOutlet, check the “Connections Inspector” on your view controller and make sure you didn’t accidentally hook the cell up instead of the image (this is my guess). If you did it in code, we’ll probably need to see the code.

    Side note: Convention says variable names should start with lowercase letters. Class names should start with uppercase letters. So UIImageView *imageView;

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

Sidebar

Related Questions

I'm trying to put a shadow (just a regular ImageView) right below the screen,
Trying to put my head around how to model the notion of default values
I'm trying to put YouTube thumbnail and Vimeo thumbnail together in the same script,
I'm trying to put an image inside a div. It is actually a multiple
I'm trying to put a vignette on an image link, that when hovered over
I'm trying to put together a small thumbnail gallery and have run into a
The following html shows a item information. I'm trying put the avaliation span on
I'm trying put an if statement directly into a select field in rails, with
Trying to put a regex expression together that returns the string between _ and
I trying to put together an Android app that will take a picture and

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.