适用于 mailto
URI 的简单 Objective-C 分析器。附带测试!
BIMailToURIParser *parser = [[BIMailToURIParser alloc] initWithURL:
[NSURL URLWithString:@"mailto:[email protected]?subject=Hey"]];
NSArray *recipients = parser.toRecipients;
NSArray *ccRecipients = parser.ccRecipients;
NSArray *bccRecipients = parser.bccRecipients;
NSString *subject = parser.subject;
NSString *body = parser.body;
MIT 许可证下可用: http://bryan.mit-license.org