-
Notifications
You must be signed in to change notification settings - Fork 1
/
JTAlert.m
35 lines (27 loc) · 861 Bytes
/
JTAlert.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// JTAlerts.m
// PassDesigner
//
// Created by jTribe - love your apps on 6/08/12.
// Copyright (c) 2012 jTribe Labs. All rights reserved.
//
#import "JTAlert.h"
#import "JTApplication.h"
@implementation JTAlert
+ (void) notYetImplemented
{
[JTAlert alertWithInfoMessage:JTLOCALIZE(@"Not yet implemented") ];
}
+ (void) noInternet
{
[JTAlert alertWithInfoMessage:JTLOCALIZE(@"No Internet. Please try again later.") ];
}
+ (void) alertWithErrorMessage:(NSString*)message
{
[[[UIAlertView alloc] initWithTitle:JTLOCALIZE(@"Oops") message:message delegate:self cancelButtonTitle:JTLOCALIZE(@"Ok") otherButtonTitles: nil] show];
}
+ (void) alertWithInfoMessage:(NSString*)message
{
[[[UIAlertView alloc] initWithTitle:JTLOCALIZE(@"Info") message:message delegate:self cancelButtonTitle:JTLOCALIZE(@"Ok") otherButtonTitles: nil] show];
}
@end