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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:23:43+00:00 2026-06-01T17:23:43+00:00

I have an array of UIImageViews . I want to apply a shadow to

  • 0

I have an array of UIImageViews. I want to apply a shadow to each of these images. I’ve used the code below:

- (void)awakeFromNib {
    for (UIImageView *image in imagesJigsawPieces) {
        image.layer.shadowColor = [UIColor blackColor].CGColor;
        image.layer.shadowOffset = CGSizeMake(-1, -1);
        image.layer.shadowOpacity = 1;
        image.layer.shadowRadius = 5.0;
        image.clipsToBounds = NO; //EDIT: I have also included this with no change
    }
}

I have also included #import <QuartzCore/CALayer.h>.

I am not getting any errors but I am also not getting any shadows on my images.

  • 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-01T17:23:44+00:00Added an answer on June 1, 2026 at 5:23 pm

    Are you certain this code is being called? Have you placed a breakpoint in the for loop to verify?

    -awakeFromNib is called only if you have a view (or whatever) in a nib file connected via IBOutlet to an ivar in your code. -awakefFromNib is called, in this case, instead of -initWithFrame: (or the like), an important distinction which I sometimes forget myself!

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

Sidebar

Related Questions

I have array of image url. I want to show the images into UIImageView.
In my code I have an array of objects which are UIImageViews with UIImages
I have an array of images loaded into a UIImageView that I am animating
I have an NSMutableArray of IBOutlet UIImageView elements and I want to bind each
I want to make an array with a bunch of UIImageViews I have in
I have several objects in an array. These objects are from a UIImageView subclass.
I have 5 images in array which are displaying in UIimageview and displaying one
I have an NSArray filled with UIImageViews. I want to do an indexOfObject call
I have an array of images (can be up to 25) that need to
I have several instances of a UIImageView that I want to manage dynamically. I

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.