2012年11月1日
摘要: UIActionSheet最后一个按钮看不到,一般是cancelButton,要稍微向上偏移一点才可以。不过这不是常态,几乎没多少人碰到这个问题,这是在特定情况下才会发生,这个场景就是试用了UITabBar的时候才有。解决方法: UIActionSheet *actionSheet = [[UIActionSheetalloc] initWithTitle:@"title" delegate:self cancelButtonTitle:@"Cancel" ... 阅读全文
posted @ 2012-11-01 12:04 shawn.zp 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 总有一些方便的开发方式或者通用的方法,还总记不住,老是去翻以前的项目,做个备份。(慢慢补充)1、view控件加边框profileImageButton = [UIButton buttonWithType:UIButtonTypeCustom];[profileImageButton.layer setMasksToBounds:YES];[profileImageButton.layer setCornerRadius:4.0]; //设置矩形四个圆角半径[profileImageButton.layer setBorderWidth:1.0]; //边框宽度CGColorSpaceRef 阅读全文
posted @ 2012-11-01 10:27 shawn.zp 阅读(215) 评论(0) 推荐(0) 编辑