摘要: extern NSString* const kCTSMSMessageReceivedNotification; extern NSString* const kCTSMSMessageReplaceReceivedNotification; extern NSString* const kCTSIMSupportSIMStatusNotInserted; extern NSString* const kCTSIMSupportSIMStatusReady; typedef struct __CTCall CTCall; extern NSString *CTCall... 阅读全文
posted @ 2011-12-26 17:13 痴人指路 阅读(747) 评论(0) 推荐(0) 编辑
摘要: //根据文件名来获取文件路径 doucument - (NSString *)dataFilePath:(NSString *)sender { NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentDirectory = [path objectAtIndex:0]; ... 阅读全文
posted @ 2011-12-26 13:46 痴人指路 阅读(770) 评论(0) 推荐(0) 编辑
摘要: steps:1导入:CoreGraphics.framework 2object.layer.masksToBounds=YES; 3object.layer.cornerRadius=15;ok 一个圆角的object View出来了!!!!!!二、在实际的应用中,总感觉圆角的东西比较好看, 像button,label,image等等,以前的时候我就经常给那些控件添加一个UIImageView作为背景,再搞张圆角的图片,不过今天发现了新方法看代码viewT.layer.cornerRadius = 10;//设置那个圆角的有多圆viewT.layer.borderWidth = 10;//设 阅读全文
posted @ 2011-12-26 10:54 痴人指路 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 把图片切成圆角代码http://www.cocoachina.com/bbs/read.php?tid=1757static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, float ovalHeight){float fw, fh;if (ovalWidth == 0 || ovalHeight == 0) {CGContextAddRect(context, rect);return;}CGContextSaveGState(context);CGContextTranslateC 阅读全文
posted @ 2011-12-26 10:48 痴人指路 阅读(314) 评论(0) 推荐(0) 编辑