//
// CCNSURL.m
// CCFC
//
// Created by xichen on 11-12-18.
// Copyright 2011 ccteam. All rights reserved.
//
#import "CCNSURL.h"
@implementation NSURL(cc)
+ (NSString *)telephonePrefix
{
return @"tel://";
}
+ (NSString *)smsPrefix
{
return @"sms://";
}
+ (NSString *)mailPrefix
{
return @"mailto://";
}
+ (NSString *)googleMapPrefix
{
return @"http://maps.google.com/maps?q=";
}
+ (NSString *)itunesStorePrefix
{
return @"itms://";
}
@end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNSURL.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCNSURL.m
本文详细介绍了CCFC库中与URL操作相关的函数实现,包括电话、短信、邮件、Google地图和iTunes商店链接的前缀生成。
127

被折叠的 条评论
为什么被折叠?



