摘要: //网络POSt请求 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; // 设置接受数据格式 [manager.responseSerializer setAcceptableCon... 阅读全文
posted @ 2015-10-28 16:11 偷窃者 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 1.绘制虚线 CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setBounds:self.view.bounds]; [shapeLayer setPosition:self.view.center]; [shapeLaye... 阅读全文
posted @ 2015-10-27 13:47 偷窃者 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 你可以仅仅删除冲突的文件并且提交,但是svn resolved除了删除冲突文件,还修正了一些记录在工作拷贝管理区域的记录数据,所以我们推荐你使用这个命令。恢复本地修改svn revert [--recursive] 文件名注意: 本子命令不会存取网络,并且会解除冲突的状况。但是它不会恢复被删除的目录... 阅读全文
posted @ 2015-10-10 13:32 偷窃者 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 1.准备注意:一定要让你的真机设备的系统版本和app的系统版本想对应,如果不对应就会出现一个很常见的问题:could not find developer disk image首先,准备好下面的设备机相关软件MAC版本:OSX10.10.4Xcode版本:Xcode7 beta5(点击下载) 真机设... 阅读全文
posted @ 2015-09-30 15:27 偷窃者 阅读(433) 评论(0) 推荐(1) 编辑
摘要: - (void)text:(NSString *)str color:(UIColor *)color font:(UIFont *)font{ if (!str) str = self.text; if (!color) color = self.textColor; if (!... 阅读全文
posted @ 2015-09-25 14:28 偷窃者 阅读(927) 评论(4) 推荐(0) 编辑
摘要: #import@interfaceNSString (HXAddtions)+(NSString *) jsonStringWithDictionary:(NSDictionary *)dictionary;+(NSString *) jsonStringWithArray:(NSArray *)a... 阅读全文
posted @ 2015-09-24 10:02 偷窃者 阅读(617) 评论(1) 推荐(0) 编辑
摘要: /*!* @brief 把格式化的JSON格式的字符串转换成字典* @param jsonString JSON格式的字符串* @return 返回字典*/+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString {if (j... 阅读全文
posted @ 2015-09-11 16:40 偷窃者 阅读(4257) 评论(0) 推荐(0) 编辑
摘要: - (void)drawInRect:(CGRect)rect withAttributes:(NSDictionary *)attrs-(void)drawRect:(CGRect)rect{ self.backgroundColor=[UIColor whiteColor]; NSS... 阅读全文
posted @ 2015-08-17 16:06 偷窃者 阅读(504) 评论(0) 推荐(0) 编辑
摘要: { floatheightText;//文字高度}NSDictionary*dict=@{NSFontAttributeName:[UIFontsystemFontOfSize:20.0]}; CGSizecontentSize=[@"我"sizeWithAttributes:dict];heig... 阅读全文
posted @ 2015-08-17 15:51 偷窃者 阅读(654) 评论(0) 推荐(0) 编辑
摘要: iOS软件开发的时候会遇到这种情况:打开APP后会在后台运行某个方法,例如下载文件,下载完成后可能需要调用某个方法来刷新界面,这时候可能没法在下载的函数中回调。NSNotificationCenter(通知)是一个很好的选择。通知使用起来非常的简单:1. 定义将要调用的方法:- (void)call... 阅读全文
posted @ 2015-08-14 12:05 偷窃者 阅读(218) 评论(0) 推荐(0) 编辑