У меня есть класс следующим образом
#import "UtilAlert.h"
@implementation UtilAlert
+(void) showAlert:(NSString *)message andTitle:(NSString *)title andDelegate:(UIViewController *) delegate
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:message delegate:delegate cancelButtonTitle:@"Cancel" otherButtonTitles:nil];
[alert show];
}
@end
Проблема в том, что при вызове функции с необходимыми параметрами ...
[UtilAlert showAlert:@"hello" andTitle:@"hello" andDelegate:self] ;
я получаю ошибку: Thread1: остановлен в точке останова 3;
для вызова функции из класса UIController