In my app i have created one custom alert view with one progress bar and one button , while rotate the device , custom alertview also rotate but the alert view size in automatically changed. how can i fix it? !
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.
When rotating your device, on each view a property is checked, if autoresizing for a view is enabled.
Your custom alert view, as it is certainly a subclass of UIView, has a property called
autoresizingMask. Set the value toUIViewAutoresizingNonelike so: