摘要: 如题,有两个view: view1,view2view2添加view1到中,如果view2大于view1,或者view2的坐标不全在view1的范围内,view2是盖着view1的,意思就是超出的部份也会画出来UIView有一个属性,clipsTobounds 默认情况下是NO。如果,我们想要view2把超出的那部份隐藏起来的话,就得改变它的父视图也就view1的clipsTobounds属性值。view1.clipsTobounds = YES;no的情况:yes的情况:转 http://hi.baidu.com/marktian/item/8c727012013ecca1feded5f8 阅读全文
posted @ 2013-07-09 20:58 ygm900 阅读(272) 评论(0) 推荐(0)
摘要: 重用控件类代码的一个非常好的解决方案:所有一样的控件其名字均用同样的一个名字。只是在最后赋值的时候,将创建好的控件赋给我们需要用到的那个控件。- (id)initWithFrame:(CGRect)frame arrowImageName:(NSString *)arrow textColor:(UIColor *)textColor { if((self = [super initWithFrame:frame])) { self.autoresizingMask = UIViewAutoresizingFlexibleWidth; sel... 阅读全文
posted @ 2013-07-09 14:56 ygm900 阅读(983) 评论(0) 推荐(0)
摘要: Undefined symbols for architecturei386:“_OBJC_CLASS_$_XXX”,referenced from:objc-class-ref in XXXld: symbol(s) not found for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)如果真机调试就是 undefined symbols for architecture armv7错误!发生这种错误通常是project.pbxproj这个文件 阅读全文
posted @ 2013-07-09 10:37 ygm900 阅读(30125) 评论(0) 推荐(1)