iphone-common-codes-ccteam源代码 CCNSURL.m

//
// 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

 

你可能感兴趣的:(iPhone)