Не удалось вызвать вид предупреждения ui в классе nsobject. Интересно, что им что-то не хватает. я получаюКак вызвать UIAlertView в классе nsobject?
cannot find protocol definition "UIAlertViewDelegate"
Заранее спасибо ..
mynsobjectclass.h
@interface mynsobjectclass : NSObject <UIAlertViewDelegate>
@property (atomic, copy) NSString *serverURL
@end
mynsobjectclass.m
+(void)displayalert{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"Hello there..." delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK",nil];
[alert show];
}
Возможно, вы хотите проверить, как вы определяете свой объект mynsobjectclass. – joker