ios-custom-alertview icon indicating copy to clipboard operation
ios-custom-alertview copied to clipboard

Alertview scaled automatically between calls

Open YSDC opened this issue 10 years ago • 0 comments

I discovered another strange behavior (maybe linked to IOS8, never appeared before...).

In my projects, the alertview is not defined programmatically but with storyboards. I instantiate the view, store in my current controller after the first call and reuse it (and attach as content) in my alert view next time i need it.

For an unknown reason, the first time the alert view size is correct, but every following call will scale my view :-D For example: 1st call: 300x160 2nd call: 500x300.5 3rd call: 833x535

I discover that the view change during the close method, when the "animateWithDuration" block is called. I suspect the CATransform3DConcat modify my view size.

This problem might comes from my project also because i use this library for a long time and never had any problem. I just posted this to know if someone else had the same issue.

To resolve this problem (temporary because i don't like the following solution), i just recall the "instantiateViewControllerWithIdentifier" method everytime i need the alertview content.

Regards

YSDC avatar Nov 02 '14 22:11 YSDC