摘要: 制作一个JPG格式图片文件,大小512*512左右,然后将这个JPG格式文件改名为iTunesArtwork(注意大小写),其实如果不用itunes安装的话,这个步骤可以省略,因为这个图标是为了在itunes显示用的新建一个文件夹Payload,与上述iTunesArtwork文件放在同一级目录下,将xCode 里buide生成的.app文件拷到该目录下,然后使用plist文件编辑工具(例如pledit.exe)打开.app文件夹里的Info.plist文件,对其进行如下修改:<key>SignerIdentity</key><string>Apple iP 阅读全文
posted @ 2012-10-16 20:10 superchao 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 不用app loader的方法转载:http://blog.sina.com.cn/s/blog_5f1967e00100z117.html 阅读全文
posted @ 2012-10-15 20:19 superchao 阅读(142) 评论(0) 推荐(0) 编辑
摘要: From:http://www.cocoachina.com/bbs/read.php?tid=107251@synthesize 可以不用再写了如果在.h文件里有?1@propery NSObject * aProperty那么可以认为 编译器会类似在.m文件里生成?1@synthesize aProperty = _aProperty如果上面的都不认识 就可以认为 以下代码?123456789@interface Spouce:NSObject@property (strong) NSObject * child@end@implementSpouce@end和下面的代码没有太大区别(如果 阅读全文
posted @ 2012-10-10 09:38 superchao 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 得益于这个帖子:http://www.cocoachina.com/bbs/read.php?tid=96925感谢楼主neutyz&cocoachina症状Certificate identity 'iPhone Developer: xxxx ho(2J123456HA)' appears more than once in the keychain. The codesign tool requires there only be one.解决办法原因是keychain access中存在过期的'iPhone Distribution: xxxx' 阅读全文
posted @ 2012-10-09 11:15 superchao 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://blog.chinaunix.net/uid-20676637-id-1641711.html如果你更新了profile,再编译iphone项目,发现下面的错误,那你无论如何clean也不会成功,那真是让人恼火阿"Provisioning profile XXXX can't be found"这 时候,先copy那行出错信息,然后关闭这个项目,打开finder到你的项目文件xxxx.xcodeproj上面按鼠标右键,选择Show Package Contents菜单,在新打开的finder的,找到project.pbxproj,使用一个文本ed 阅读全文
posted @ 2012-10-09 11:14 superchao 阅读(262) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/8377970/xcode-ios-project-only-shows-my-mac-64-bit-but-not-simulator-or-device 阅读全文
posted @ 2012-09-28 10:42 superchao 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 我们在有多个 UIView层叠时,比如一个按钮被一个 UIView遮盖时,想要在点击最上层的UIView时能触发按钮的相应事件,我们该如何实现呢,初步可以想到几种办法:1.把按钮上层的所有 UIView的 userInteractionEnabled属性设置为NO,要是 UIView有自己的交互事件该如何办呢?而且这个 userInteractionEnabled 不能动态设置,等到点击后决定设置它的 NO 是没用的2. UIView接受到点击事件后主动去触发下面按钮的点击,这时的关题有三,按钮没有点击过程中的交换效果、多层UIView时不切实际,逐层下传吗、还有就是其他双击、三击或别的手势如 阅读全文
posted @ 2012-09-21 17:39 superchao 阅读(1018) 评论(1) 推荐(0) 编辑
摘要: -、建立 UITableViewDataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)];[DataTable setDelegate:self];[DataTable setDataSource:self];[self.view addSubview:DataTable];[DataTable release];二、UITableView各Method说明//Section总数- (NSArray*)sectionIndexTitlesForTableView:(UITableView *)table 阅读全文
posted @ 2012-09-20 17:24 superchao 阅读(2557) 评论(0) 推荐(1) 编辑
摘要: 'Undefined symbols for architecture i386: "_OBJC_CLASS_$_CustomTabBar", referenced from objc-class-ref inViewController.old: symbol(s) not found for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)'问题原因:我xcode版本为4.3.1,在引入CustomTabBar时 阅读全文
posted @ 2012-09-20 10:52 superchao 阅读(706) 评论(0) 推荐(0) 编辑
摘要: cmd + ctrl + 上 在.h和.m文件之间切换 阅读全文
posted @ 2012-09-18 14:54 superchao 阅读(118) 评论(0) 推荐(0) 编辑