2011年11月30日
摘要: 本文摘自:http://www.cocoachina.com/applenews/devnews/2010/0721/1903.html苹果又对 App Store 的上传政策进行了更改,从7月22号起,苹果开发者只能用 Application Loader 上传应用。相信开发者们已经收到了苹果发来的邮件通知您可以通过以下链接下载 Application Loaderhttp://itunesconnect.apple.com/apploader/ApplicationLoader_1.3.dmgApplication Loader 的用法请看苹果官方的开发者手册第132页,下载地址http: 阅读全文
posted @ 2011-11-30 18:33 wtq 阅读(1909) 评论(1) 推荐(0) 编辑
摘要: 1,如果视图是从nib中加载的,我们应该首先实现initWithCode:因为nib中的对象实例将存储为归档对象。(某一个view设置为自定义的子view)hitTest代码范例:- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ for (UIView *tmpView in self.subviews ) { if(tmpView.userInteractionEnabled && [tmpView isMemberOfClass:[UIButton class]]) { if (CGRectCont 阅读全文
posted @ 2011-11-30 18:24 wtq 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 使用类别来为UIColor添加方法:#import <UIKit/UIKit.h>@interface UIColor(Random)+(UIColor *)randomColor;@end实现文件:@implementation UIColor(Random)+(UIColor *)randomColor{ static BOOL seeded = NO; if (!seeded) { seeded = YES; srandom(time(NULL)); } CGFloat red = (CGFloat)random()/(CGFloat)RAND_MAX; CGFlo... 阅读全文
posted @ 2011-11-30 11:03 wtq 阅读(317) 评论(0) 推荐(0) 编辑