0

我正在编写一个 iPhone 应用程序,其中图像使用蓝牙从一部 iPhone 传输到另一部 iPhone。如何存档图像并将其发送到另一部 iPhone,然后取消存档图像?直接使用 NSKeyedarchiver 存档图像不起作用。

4

1 回答 1

2

您可以使用Image Manipulation函数UIImageJPEGRepresentationUIImagePNGRepresentation.

您可以使用 UIImage 便捷方法imageWithData:或初始化程序initWithData:将 NSData 表示转换为 UIImage 。

于 2009-11-25T08:42:14.507 回答