Is there an option to show a modal dialog containing uitableview in the middle of the screen with size 200×200 whyle all other parts of parent screen are darken?
Share
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.
On the iPhone, you can’t do this using the standard way of presenting modal dialog controllers, because it is assumed your modal dialog will cover the old content entirely, and the old content isn’t painted underneath your modal (so making your modal dialog partly transparent wouldn’t help).
One approach to get the effect is to augment the currently showing view by adding a UIView as a subview in the centre of the screen (for your actual modal content), complete with another layer underneath with partial transparency and black colour to cause the ‘underneath’ UI to appear darker.
See also this related question/answer: Transparency for top UIView not working