KWMContactUsVC.m 1.58 KB
Newer Older
houweibin committed
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
//
//  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:^{
r  
lee committed
42
        NSString *phoneNum = @"4006878706";
houweibin committed
43 44 45 46 47 48 49 50 51 52 53 54 55
        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]];
}

r  
lee committed
56 57 58
- (IBAction)wechatAction:(id)sender {
    [self showToast:@"复制成功"];
    UIPasteboard *pb = [UIPasteboard generalPasteboard];
59
    pb.string = @"cemarose";
r  
lee committed
60
}
houweibin committed
61

r  
lee committed
62 63 64 65 66
- (IBAction)weiboAction:(id)sender {
    [self showToast:@"复制成功"];
    UIPasteboard *pb = [UIPasteboard generalPasteboard];
    pb.string = @"cemarose";
}
houweibin committed
67 68 69


@end