I displayed 20 buttons on the view(almost the view is covered with bottons images), now I want to display information using animations on the top of all these buttons like UIAlertView.
Now I am displaying the alert view but instead of that I need to display the animated view on the top of all the buttons.
How can I achieve it, is there any idea to display the information on the top of all the buttons using view animations.
Please help me,
thank you, Madan Mohan.
Madan for this you will need two views. If you observe behavior of
UIAlertViewthen you will find that when alert view is shown we can not interact with any other item on the view. So one view will serve the purpose for alertview and other will block interaction withUI.You can do this as follows:
Have two views on your
self.view. One view will hold all the elements that are currently on the self.view and other will havealertview. so hierarchy goes like thisNow how to piece all this together.
When user will tap on any button the you will need to bring backview to front inside
[UIView beginanimation]and other animation code and commite it.and when user is done with this view you will send it to back.
Also, to make transparent look as we have when
alertviewis shown, set View2’sbackgroundColorblack andalphaproperty 0.3 (or as you wish).Thanks,