在iPhone上如果想在应用程序里发送邮件只能通过调用系统默认email客户端程序,使用mailto协议,具体方法为
1 | [[UIApplication sharedApplication] OpenURL:@"mailto:someone@web.com?subject=test email...">mailto:someone@web.com?subject=test email..."]; |
这种方式建档方便, 如果只是简单的发送文本完全可以胜任, 不过如果需要发送附件或者html格式化的信件,这种方法将无法实现,此时需要在自己的程序中实现email发送代码。 如果你不想自己去实现发送的代码,请看SKPSMTPMessage , 该项目是google上的开源项目,实现了iPhone平台通过SMTP发送email的功能
[阅读全文]Tags: Email, iPhone, Objective-C, SMTP, 发送邮件
This is a simple class for compressing and extracting files. It works depend on minizip, which is a open source zip format library. And it’s included in the attachment.
The major class name is ZipArchive, it’s easy to use, you can declare a instance and call initialize functions, and then call addFileToZip or UnzipFileTo [...]
Windows Mobile(以下简称WM)的开发相对于iPhone来说简单的多, Apple在界面上明显略胜一筹,但是在实际应用的开发方面还是微软做的更到位。就像在iPhone上如果要想获取GPS信息是个不容易办到的事儿,虽然开放了CLLocationManager类,但是所获得的GPS信息只是过期的cache, 要开发者自己写代码去获得最新的GPS信息,还有可能不响应。 相比之下在WM系统就简单的多, WM5 Pocket SDk5 以后提供了叫做中间媒介驱动的一套函数,可以方便的访问GPS硬件及读取GPS定位信息,其实只有4个函数
[阅读全文]Tags: GPS, iPhone, windows mobile, wm