会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
偷窃者
博客园
首页
新随笔
联系
订阅
管理
2015年10月28日
AFNetWorking 简单使用方法
摘要: //网络POSt请求 AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; // 设置接受数据格式 [manager.responseSerializer setAcceptableCon...
阅读全文
posted @ 2015-10-28 16:11 偷窃者
阅读(353)
评论(0)
推荐(0)
2015年10月27日
画虚线
摘要: 1.绘制虚线 CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setBounds:self.view.bounds]; [shapeLayer setPosition:self.view.center]; [shapeLaye...
阅读全文
posted @ 2015-10-27 13:47 偷窃者
阅读(359)
评论(0)
推荐(0)
2015年10月10日
svn 终端命令
摘要: 你可以仅仅删除冲突的文件并且提交,但是svn resolved除了删除冲突文件,还修正了一些记录在工作拷贝管理区域的记录数据,所以我们推荐你使用这个命令。恢复本地修改svn revert [--recursive] 文件名注意: 本子命令不会存取网络,并且会解除冲突的状况。但是它不会恢复被删除的目录...
阅读全文
posted @ 2015-10-10 13:32 偷窃者
阅读(1076)
评论(0)
推荐(0)
2015年9月30日
Xcode 7真机测试详解
摘要: 1.准备注意:一定要让你的真机设备的系统版本和app的系统版本想对应,如果不对应就会出现一个很常见的问题:could not find developer disk image首先,准备好下面的设备机相关软件MAC版本:OSX10.10.4Xcode版本:Xcode7 beta5(点击下载) 真机设...
阅读全文
posted @ 2015-09-30 15:27 偷窃者
阅读(444)
评论(0)
推荐(1)
2015年9月25日
修改UILabel字体
摘要: - (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 偷窃者
阅读(933)
评论(4)
推荐(0)
2015年9月24日
NSString,NSArray和NSDictionary to JSON标准格式字符串
摘要: #import@interfaceNSString (HXAddtions)+(NSString *) jsonStringWithDictionary:(NSDictionary *)dictionary;+(NSString *) jsonStringWithArray:(NSArray *)a...
阅读全文
posted @ 2015-09-24 10:02 偷窃者
阅读(625)
评论(1)
推荐(0)
2015年9月11日
iOS:json格式字符串转字典,字典转json格式字符串
摘要: /*!* @brief 把格式化的JSON格式的字符串转换成字典* @param jsonString JSON格式的字符串* @return 返回字典*/+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString {if (j...
阅读全文
posted @ 2015-09-11 16:40 偷窃者
阅读(4266)
评论(0)
推荐(0)
2015年8月17日
iOS 文字属性
摘要: - (void)drawInRect:(CGRect)rect withAttributes:(NSDictionary *)attrs-(void)drawRect:(CGRect)rect{ self.backgroundColor=[UIColor whiteColor]; NSS...
阅读全文
posted @ 2015-08-17 16:06 偷窃者
阅读(511)
评论(0)
推荐(0)
UITextView高度随文字自动增加
摘要: { floatheightText;//文字高度}NSDictionary*dict=@{NSFontAttributeName:[UIFontsystemFontOfSize:20.0]}; CGSizecontentSize=[@"我"sizeWithAttributes:dict];heig...
阅读全文
posted @ 2015-08-17 15:51 偷窃者
阅读(662)
评论(0)
推荐(0)
2015年8月14日
NSNotificationCenter通知
摘要: iOS软件开发的时候会遇到这种情况:打开APP后会在后台运行某个方法,例如下载文件,下载完成后可能需要调用某个方法来刷新界面,这时候可能没法在下载的函数中回调。NSNotificationCenter(通知)是一个很好的选择。通知使用起来非常的简单:1. 定义将要调用的方法:- (void)call...
阅读全文
posted @ 2015-08-14 12:05 偷窃者
阅读(222)
评论(0)
推荐(0)
下一页
公告