title: Issue in adding a shadow to view layer
body: <p>In one of my view I am adding shadow to a view. Thing is that the shadow shows white spaces on left &amp; right edges. I want to remove these spaces.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>UIView *myView = [[ISTView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 35)];
  myView.backgroundColor = [UIColor greyColor];
  [myView.layer setShadowOffset:CGSizeMake(0.0, 5.0)];
  [myView.layer setShadowOpacity:0.8];
  [myView.layer setShadowRadius:2.0];
  [myView.layer setShadowColor:[UIColor blackColor].CGColor];
  [self.view addSubview:myView];
  [myView release];
  </code></pre>
  
  <p>Here is my view's o/p:</p>
  
  <p><img src="https://i.stack.imgur.com/VHmhB.png" alt="enter image description here"></p>