51CTO博客开发
今天在把iOS工程从一台机器拷贝到一台新机器(未装cocoaPod)时遇到了如下的问题。YuandeMacBook-Pro:ProjectDirectory user$ pod updateUpdate all podsUpdating local specs repositoriesCocoaPods 1.0.0.beta.3 is available.To update use: `gem i
定制UITableView 中UITableViewCell点击颜色: self.selectionStyle = UITableViewCellSelectionStyleDefault; UIView *selectedBackgroundView = [[UIView alloc] init];
(1)如果是使用系统导航栏则设置其translucent属性即可:[self.navigationController.navigationBar setBackgroundImage:[UIImage new] &nb
转自:http://www.it165.net/pro/html/201209/3844.htmliOS6 与 iphone5 已经发布一段时间了,那么对于cocos2dx在昨天发布的最新支持的Cocos2d-2.0-x-2.0.3 released版本之前的版本跑在iOS6中会出现两个问题(Himi 都已iphone5 真机调试验证并解决)首先对于 libcurl.a 无法通过armv7s编译的
转自:http://blog.csdn.net/ccf0703/article/details/7595014IOS中,UIScrollView是可以滚动的视图,其中最常用的UITableView就是继承了UIScrollView。跟所有的view一样,UIScrollView有一个frame属性,同时,UIScrollView还具有contentSize、contentOffset和conten
// codeObj.h#import <Cocoa/Cocoa.h>/**cocoa具备一种机制来将对象自身转换为某种格式并保存中磁盘上。对象可以将它们的实例变量和其他数据编码为数据块,然后保存到磁盘中。以后将这些数据块都会到内存中,并且还能基于保存的数据创建新对象。这个过程称为编码和解码,或称为序列化和反序列化。*//**要编码的对象,必须实现NSCoding协议。@p
转自:http://blog.csdn.net/playddt/article/details/8707703 http://blog.sina.com.cn/s/blog_4458fdda0101hvsb.html(1)在CCTableView中点击空白区域依然会响应单元格事件,在CCTableView.cpp中修改从点击坐标计算点击单元格的时候,原有的_indexFromOffset自动把返回
转自:http://blog.csdn.net/wm_jiangnanan/article/details/8669369获取iphone模拟器程序中的plist文件最近遇到了个问题,就是在程序中写文件。我用的是cocos2d-x,它使用的是CCUserDefault来读写本地的一个XML文件,原生的iphone程序,是读写的一个plist文件,它们之间的相同之处就是都写在了程序的document
今天安装cocos2d 2.x版本的时候,遇到这个问题如下, mkdir: /Users/Mac/Library/Developer/Xcode/Templates/cocos2d v2.x: Permission denied 解决方法如下:首先修改修改Templates的权限为777: sudo chmod -R 777 /Users/Mac/Library/Develope
引自:http://lejia.li/post/2012-10-12/40039344782 蛋疼的一个XCode bug,基本上应该不是工程本身问题。 解决方法: 1、拔掉设备,删除之前Build的内容 2、退出Xcode,不是关闭窗口 3、删除那个/Users/XXX/Library/Developer/Xcode/DerivedData/XXX-grgrmtzqajhyqgghab
What's the difference between vector and list in STL A vector is a wrapper arround an array. This means it offers random access iterator that are very fast and can also be used when raw memory pointe
C的几个库函数的实现 strcpy memcpy atoi memset (1) char* strcpy(char* strDest,const char* strSrc){ as
Shallow vs Deep Copies A shallow copy of an object copies all of the member field values. This works well if the fields are values, but may not be what you want for fields that point to dynamicall
In C++, overriding is a concept used in inheritance which involves a base class implementation of a method. Then in a subclass, you would make another implementation of the method. This is overriding.
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号