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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// KWMContectUsVC.m
// iCemarose
//
// Created by HouWeiBin on 16/8/31.
// Copyright © 2016年 kollway. All rights reserved.
//
#import "KWMContactUsVC.h"
#import "PSPDFAlertView.h"
@interface KWMContactUsVC ()
@end
@implementation KWMContactUsVC
+(NSString *)kwmTag{
return @"KWMContactUsVC";
}
- (void)viewDidLoad {
[super viewDidLoad];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
}
-(void)awakeFromNib{
[super awakeFromNib];
self.title = @"联系我们";
}
-(void)onClickPhone:(id)sender{
PSPDFAlertView *alertView = [[PSPDFAlertView alloc] initWithTitle:@"" message:@"是否拨打电话?"];
[alertView setCancelButtonWithTitle:@"取消" block:^{
}];
[alertView addButtonWithTitle:@"确定" block:^{
NSString *phoneNum = @"+33(0)983043057";
NSString *phone = [[NSString alloc]initWithFormat:@"tel:%@",phoneNum];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:phone]];
}];
[alertView show];
}
-(void)onClickEmail:(id)sender{
NSString *EmailAddress = @"info@cemarose.com";
NSString *Email = [[NSString alloc]initWithFormat:@"mailto://%@",EmailAddress];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:Email]];
}
@end