could you show me some algorithm or example code to display like that picture with or with out animation
thanks for all advise

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.
Add a semi-transparent view (regular view with black background with opacity = 80) that will cover the entire screen (in IB or in code), add a UIActivityIndicator and a label to the semi-transparent view, set it hidden.
If you use the IB then you should also create IBOutlets for the semi-transparent view (loadingView) and for the activity indicator (loadingAnimationIndicator)…
Use the next methods to show / hide the “loading view”: