I would like to obtain a UIView like this :

But i don’t know, what is the best way to do this ?
Is this the best way: https://stackoverflow.com/a/9214570/1228634 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Create the shadow as a transparent layer at a particular size, also create a stretchable image, like this:
Put the image in a UIImageView with contentMode as scale to fit.
Call your view as “sView”. You can add the shadow like this: