iphone中获取两个矩形的相交区域
摘要:
转自:http://sdlqhjk.iteye.com/blog/1067560//definiton a rectCGRect rect1 = CGRectMake(0.0f, 0.0f, 320.0f, 480.0f);//获取2个矩形的相交区域rect = CGRectIntersection(rect, bounds);//create smaller or bigger rect(have same center)CGRect rect2 = CGRectInset(rect, 32.0f, 32.0f);//CGRect and NSStringNSString *string = 阅读全文
posted @ 2012-10-09 09:18 kiao295338444 阅读(267) 评论(0) 推荐(0) 编辑