摘要: UIButton * button =[[UIButton alloc]init]; button.backgroundColor=[UIColor redColor]; [button setTitle:@"我是button" forState:UIControlStateN... 阅读全文
posted @ 2015-07-08 18:03 ifgyong 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 遇见这个问题 可能是 由于 runapp 的时候设置里面 设置为release了。解决办法是:见图build configuration 设置成 debug 状态就OK了。要是上面的不行就试一下 stackoverflow上面的大神方案:1.itounes 退出2.手机 重启 然后 卸了app3.X... 阅读全文
posted @ 2015-07-07 16:05 ifgyong 阅读(194) 评论(0) 推荐(0) 编辑
摘要: cocos2d v3.x 版本出来后,从配置安装到创建项目都是命令行,下面简单说一下.1. 下载地址 http://cn.cocos2d-x.org/download/(虽然没有标明 for mac 但是亲测可以试用,不用去https://code.google.com/p/cocos2d-x/d... 阅读全文
posted @ 2015-07-04 17:20 ifgyong 阅读(964) 评论(0) 推荐(0) 编辑
摘要: //// MSHomeCommentTableViewController.m// xiaoqu-ios//// Created by Charlie on 15/7/1.// Copyright (c) 2015年 meimeidou. All rights reserved.//#imp... 阅读全文
posted @ 2015-07-02 11:53 ifgyong 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1 -(void)viewDidLayoutSubviews { 2 3 if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) { 4 [self.tableView setS... 阅读全文
posted @ 2015-07-02 10:56 ifgyong 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 1. 假设你用malloc分配了一块内存,并且把它的地址赋值给了指针a,后来你希望指针b也共享这块内存,于是你又把a赋值给(assign)了b。此时a 和b指向同一块内存,请问当a不再需要这块内存,能否直接释放它?答案是否定的,因为a并不知道b是否还在使用这块内存,如果a释放了,那么b在使用这块内存... 阅读全文
posted @ 2015-06-26 14:08 ifgyong 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 曾几何时,被自己坑过,为了防止下次继续被自己坑,我决定了!在每个我能看到的地方,都把问题写一遍!!!方法一:?1234第一步:[self.collectionViewregisterNib:[UINibnibWithNibName:@"QGLShareBtnCell"bundle:nil]forCe... 阅读全文
posted @ 2015-04-23 10:11 ifgyong 阅读(267) 评论(0) 推荐(0) 编辑
摘要: In Build Settings are:Architectures: Starndard (armv7, armv7s)Base SDK: Latest iOS (iOS 6.0)Build Active Architecture Only: Debug Yes, Release NoValid... 阅读全文
posted @ 2015-04-16 17:00 ifgyong 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 此文下半部分为转载:但是这里有一些我自己使用技巧,结合下面的文章,我们会有更多的收获,在此感谢原创者。---------------------关于调试异常崩溃:一般崩溃是由内存使用错误导致的,要么多了,要么少了。用xcode的调试提示可以知道是什么原因导致的崩溃。在xcode中productàed... 阅读全文
posted @ 2015-04-01 20:54 ifgyong 阅读(266) 评论(0) 推荐(0) 编辑
摘要: youtube下载神器:https://github.com/rg3/youtube-dl我擦咧vim插件:https://github.com/Valloric/YouCompleteMevim插件配置:https://github.com/spf13/spf13-vim-------------... 阅读全文
posted @ 2015-03-28 18:29 ifgyong 阅读(194) 评论(0) 推荐(0) 编辑