摘要:
复制代码 #import <Foundation/Foundation.h> @interface UIImage (UIImageExt) - (UIImage*)imageByScalingAndCroppingForSize:(CGSize)targetSize; @end复制代码 #import "UIImageExt.h" @implementation UIImage (UIImageExt) - (UIImage*)imageByScalingAndCroppingForSize:(CGSize)targetSize { ... 阅读全文
posted @ 2012-03-30 17:05
痴人指路
阅读(557)
评论(0)
推荐(0)
摘要:
1 乱码情况从网上下的中文txt小说,电脑上编辑的中文txt,用UIWebView直接打开出现乱码。2 解决方案txt分带编码和不带编码两种,带编码的如UTF-8格式txt,不带编码的如ANSI格式txt。带编码的用NSString的stringWithContentsOfFile可读出,不带的,我们依次尝试GBK和GB18030编码。代码实例: 阅读全文
posted @ 2012-03-30 14:35
痴人指路
阅读(579)
评论(0)
推荐(0)

浙公网安备 33010602011771号