Arpit Parekh Arpit Parekh - 26 days ago 4x
iOS Question

View popping up/shaded/embosed out of another view

In my iPhone App,

I have one ViewController with View.

Please see image. It is a mock up. I want this popping up like effect. The white view is bit popping up out of light grey main view.
I think it has something to do with its border.

I applied border with light grey color.

What else I should I do.

enter image description here


you should give shadow to view in 2 side to get more effective

    "YOUR VIEW".layer.shadowOffset = CGSizeMake(0,1.0);
    "YOUR VIEW".layer.shadowColor  = UIColor.blackColor().CGColor
    "YOUR VIEW".layer.shadowOpacity = 0.3;
    "YOUR VIEW".layer.shadowRadius=2.0;