08 2012 档案

摘要:头文件#import <UIKit/UIKit.h>@interface UIStrokeLabel:UILabel - (void)setStrokeColor:(UIColor*)strokeColor width:(CGFloat)width;@end实现文件#import "UIStrokeLabel.h"@interface UIStrokeLabel (){ UIColor *strokeColor_; CGFloat strokeWidth_;}@end@implementation UIStrokeLabel #pragma mark - ini 阅读全文
posted @ 2012-08-18 09:02 愚茶道长 阅读(589) 评论(0) 推荐(0)
摘要:头文件#import <UIKit/UIKit.h> #import <mach/mach.h> #import <mach/mach_host.h> @interface UIDevice (Utils) + (natural_t)getFreeMemory; @end实现文件#import "UIDevice+Utils.h"@implementation UIDevice (Utils)+ (natural_t)getFreeMemory{ mach_port_t host_port; mach_msg_type_number_t 阅读全文
posted @ 2012-08-12 13:16 愚茶道长 阅读(384) 评论(0) 推荐(0)
摘要:#define DOCUMENTS_FOLDER_AUDIO @"" //你定义的audio对应的文件目录#define DOCUMENTS_FOLDER_VEDIO @"" //你定义的vedio对应的文件目录 - (void)createFileDirectories { // 判断存放音频、视频的文件夹是否存在,不存在则创建对应文件夹 NSFileManager *fileManager = [NSFileManager defaultManager]; BOOL isDir = FALSE; BOOL isDir... 阅读全文
posted @ 2012-08-12 13:08 愚茶道长 阅读(5393) 评论(0) 推荐(0)