Совет по изменению размера вашего UIAlertView ...
Как писал выше / ниже Милен Милковски, если вы установите делегата для UIAlertView:
UIAlertView* theAlert = [[UIAlertView alloc] initWithTitle:@"Lah"
message:@"dee dah"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:nil];
//NSLog(@"Pre Show: alert frame x,y: %f,%f, alert frame width,height: %f,%f", theAlert.frame.origin.x,theAlert.frame.origin.y, theAlert.frame.size.width, theAlert.frame.size.height);
[retrievingListAlert show];
Затем вы можете изменить фрейм UIAlertView, определив следующий обратный вызов UIAlertView (в классе делегатов - в данном случае, поскольку мы использовали self, тот же класс, что и для UIAlertView):
(void)willPresentAlertView:(UIAlertView *)alertView {
//NSLog(@"willPresentAlertView: alert frame midx,midy: %f,%f, alert frame width,height: %f,%f", alertView.frame.origin.x, alertView.frame.origin.y, alertView.frame.size.width, alertView.frame.size.height);
alertView.frame = CGRectMake( x, y, width, heigth );
}
Я обнаружил, что установка фрейма в другое время не будет работать. Похоже, что функция show изменяет фрейм, предположительно при автоматическом изменении его содержимого.