I have a UIAlertView
that's appearing and blocking input, but the actual "OK/Cancel" is 0×0
at (0, 0)
, so it's not dismissible by the user. Below is my current fix, but I'd much rather be able to tell iOS "Hey! This isn't right. Make it right." So, is there any way for me to reposition or reset the position of a UIAlertView
's frame in iOS?
if (_floatingAlert && // if there is an alert AND...
(_floatingAlert.visible || // ( the alert isn't visible OR...
_floatingAlert.frame.size.height + _floatingAlert.frame.size.width == 0)// The frame is invisibly small )
)
{
[_floatingAlert dismissWithClickedButtonIndex:0 animated:YES];
_floatingAlert = nil;
}