ч файл для класса ActionGeneric
#import <Foundation/Foundation.h>
@interface ActionGeneric : NSObject {
}
+(void)showAlert;
@end
м файл
#import "ActionGeneric.h"
@implementation ActionGeneric
+(void)showAlert{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"haveInternetConnection",@"")
message:@""
delegate:nil
cancelButtonTitle:NSLocalizedString(@"kOk",@"")
otherButtonTitles:nil];
[alert show];
[alert release];
}
@end
Тогда вы просто импортируете общее действие и называете его
[ActionGeneric showAllert];
Вы должны взглянуть на Цель обучения - C