上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: svn更新代码后,打开xcode工程文件,会出现 xxx..xcodeproj cannot be opened because the project file cannot be parsed.因为.xcodeproj工程文件冲突了,然后还是会强制更新,内部文件出现了冲突,所以解析不了文件。会出现这样的冲突消息>>>>>> .r70解决方法:1.对.xcodeproj 文件右键,显示包内容2.双击打开project.pbxproj 文件3.找到以上类似的冲突信息(可以用commad + f 搜索)4.删除 >>>>>这些行5 阅读全文
posted @ 2013-09-24 16:36 Dadada胖纸er 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 如果需要将UIView的四个角全部设置为圆角,做法相当简单,只需要设置其layer的cornerRadius属性即可。而若要指定某几个角(小于4)为圆角,而别的角不变的时候,这种方法就不好用了。这种情况,最简单优雅的方案,就是使用UIBezierPath。示例代码如下: UIView * view = [[UIView alloc] initWithFrame:CGRectMake(120, 10, 80, 80)]; view.backgroundColor = [UIColor grayColor]; [self.view addSubview:view]; ... 阅读全文
posted @ 2013-09-24 11:45 Dadada胖纸er 阅读(317) 评论(0) 推荐(0) 编辑
摘要: objc swift 阅读全文
posted @ 2013-09-23 17:21 Dadada胖纸er 阅读(432) 评论(0) 推荐(1) 编辑
摘要: //标记着动画块的开始,第一个参数表示动画的名字,起到标识作用 [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1];//动画的持续时间 [UIView setAnimationDelay:0.2];//动画延迟的时间 view.alpha = 0.0; [UIView commitAnimations];//动画结束UIView类的很多属性都被设计为动画。动画的属性是指当属性从一个值变为另一个值的时候,可以半自动地支持动画。您仍然必须告诉UI... 阅读全文
posted @ 2013-09-18 18:44 Dadada胖纸er 阅读(170) 评论(0) 推荐(0) 编辑
摘要: //通过xib创建 NSBundle * bundle = [NSBundle mainBundle]; NSArray * arr = [bundle loadNibNamed:@"myView" owner:self options:nil]; UIView * myView = [arr objectAtIndex:0]; //通过代码创建 CGRect viewRect = CGRectMake(0, 0, 100, 100); UIView * myView = [[UIView allo... 阅读全文
posted @ 2013-09-18 17:28 Dadada胖纸er 阅读(185) 评论(0) 推荐(0) 编辑
摘要: - (void) drawView:(UIView *)theView { Vertex3D vertex1 = Vertex3DMake(0.0, 1.0, -3.0); Vertex3D vertex2 = Vertex3DMake(1.0, 0.0, -3.0); Vertex3D vertex3 = Vertex3DMake(-1.0, 0.0, -3.0); Triangle3D triangle = Triangle3DMake(vertex1, vertex2, vertex3); glLoadIdentity();//“... 阅读全文
posted @ 2013-06-09 11:26 Dadada胖纸er 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 函数原型: void glEnableClientState (int array); void glDisableClientState (int array) ;函数功能: 可以控制管道(pipeline)开关函数参数: array ---- 可以控制的管道(pipeline)开关可以有:GL_COLOR_ARRAY (颜色) ,GL_NORMAL_ARRAY (法线), GL_TEXTURE_COORD_ARRAY (材质), GL_VERTEX_ARRAY(顶点),GL_POINT_SIZE_ARRAY_OES等描述:大部分图形系统都可以比作工厂中的装配线(Assemble line) 阅读全文
posted @ 2013-06-09 11:20 Dadada胖纸er 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: 有时候程序崩溃或者出现异常,不好找到出问题的地方。只需要设置Xcode,使其能够在程序崩溃或者出现异常的地方,主动加上断点,注意,是让Xcode主动加断点,这样可以方便我们调试While you can set breakpoints yourself to break on a particular line,it would be nice if the debugger would automatically set a breakpoint on any line that causes your application to crash or that causes an excep 阅读全文
posted @ 2013-06-08 18:00 Dadada胖纸er 阅读(168) 评论(0) 推荐(0) 编辑
摘要: CALayer属于Core Animation部分的内容,比较重要而不太好理解。以下是园子中看到的一篇文章的摘录:1. UIView是iOS系统中界面元素的基础,所有的界面元素都是继承自它。它本身完全是由CoreAnimation来实现的。它真正的绘图部分,是由一个CALayer类来管理。UIView本身更像是一个CALayer的管理器,访问它的跟绘图和跟坐标有关的属性,例如frame,bounds等,实际上内部都是在访问它所包含的CALayer的相关属性。2. UIView有个重要属性layer,可以返回它的主CALayer实例。// 要访问层,读取UIView实例的layer属性CALay 阅读全文
posted @ 2013-06-08 09:58 Dadada胖纸er 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 斯坦福大学公开课:iPad和iPhone应用开发(iOS5)http://v.163.com/special/opencourse/ipadandiphoneapplication.html 阅读全文
posted @ 2013-06-06 18:23 Dadada胖纸er 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页