Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try the below links, some of them are old but you can get some pointer.</p> <p><a href="http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html" rel="noreferrer">Custom Table Effects</a></p> <p><a href="http://www.touchthatfruit.com/uitableview-shadows" rel="noreferrer">Dropshadow 2</a></p> <p><a href="http://cocoawithlove.com/2009/08/adding-shadow-effects-to-uitableview.html" rel="noreferrer">Cool Table Views</a></p> <p><a href="http://rowboatrevolution.com/2009/06/drop-shadows-in-uitableview/" rel="noreferrer">DropShadow</a></p> <p>Okay!! I attempted once again and got an effect, it is again a work around only (instead of using images), the below is what i tried</p> <p>Create a CALayer, with the same frame as your tableview, give the same curve and all, add the table view on top of this layer, thats it.</p> <pre><code>CALayer *sublayer = [CALayer layer]; sublayer.backgroundColor = [UIColor blueColor].CGColor; // If you dont give this, shadow will not come, dont know why sublayer.shadowOffset = CGSizeMake(0, 3); sublayer.shadowRadius = 5.0; sublayer.shadowColor = [UIColor blackColor].CGColor; sublayer.shadowOpacity = 1.0; sublayer.cornerRadius = 5.0; sublayer.frame = CGRectMake(myTable.frame.origin.x, myTable.frame.origin.y, myTable.frame.size.width, myTable.frame.size.height); [self.view.layer addSublayer:sublayer]; [self.view.layer addSublayer:myTable.layer]; </code></pre> <p>Ah!! due to some reason I am unable to upload the screenshot from my machine, firewall ;-). I will try from my home.</p> <p><img src="https://i.stack.imgur.com/81tWB.png" alt="enter image description here"></p> <p>-anoop</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload