iOS how to put shadow on scrollview
===

In my iOS app 

my application contains scrollview and i want to put a shadow and i have tried lot of codes but none of them are working..

i have programatically taken scrollview

[self.view addsubview:scroll1];

want to set shadow on scrollview using slider

so if anyone know then answer it....

    -(IBAction)slide3changed:(id)sender
    {
        UISlider *slider=(UISlider*)sender;
        
        scroll1.layer.shadowColor = [UIColor blackColor].CGColor;
        scroll1.layer.shadowRadius = slider.value;
        scroll1.layer.shadowOpacity = slider.value;
    }



