摘要: 原图,为正方形就是给图片的cornerRadius设置为图片宽度的一半#define imgViewW 150UIImageView *imgView = [[UIImageView alloc]initWithFrame:CGRectMake(50, 100, imgViewW, imgVi... 阅读全文
posted @ 2015-11-23 17:58 lixin327 阅读(492) 评论(0) 推荐(0)
摘要: 1.一个gesture只能对应一个view。这是最根本的//若这样写,那么只有self.view能添加手势,self.navigationController.navigationBar是添加不上的,因为被覆盖了UITapGestureRecognizer *gesture = [[UITapGes... 阅读全文
posted @ 2015-11-23 17:55 lixin327 阅读(578) 评论(0) 推荐(0)
摘要: 返回按钮部分默认是蓝色,如有两个controller,A和B,其中A跳往B。在A中有 那么有两种方式可以修改①可以在B中(不是A)的viewDidLoad或viewWillAppear写 这样只修改B界面的颜色 ②在A中的viewWillAppear或viewDidLoad写 这种写法是全局的,会将 阅读全文
posted @ 2015-11-23 17:42 lixin327 阅读(999) 评论(0) 推荐(0)