上一页 1 ··· 3 4 5 6 7
摘要: 1. onTintColor 处于on时switch的颜色switchImage.onTintColor=[UIColorgrayColor];2.tintColor 处于off时switch的颜色switchImage.tintColor=[UIColorgreenColor];3.onImage... 阅读全文
posted @ 2015-08-19 14:41 CheungSir 阅读(391) 评论(0) 推荐(0)
摘要: 1.Image 设置图片,默认显示UIImageView *_imageView = [[UIImageView alloc]init];_imageView.image = [UIImage imageNamed:@"me.png"]; 2.highlightedImage 设置高亮状态下显... 阅读全文
posted @ 2015-08-19 14:35 CheungSir 阅读(180) 评论(0) 推荐(0)
摘要: 1.alpha设置视图的透明度.默认为1. // 完全透明 view.alpha = 0; // 不透明 view.alpha = 1;2.clipsToBounds // 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。 view.clipsToBo... 阅读全文
posted @ 2015-08-17 12:47 CheungSir 阅读(168) 评论(0) 推荐(0)
摘要: 1、contentOffset 默认CGPointZero,用来设置scrollView的滚动偏移量。// 设置scrollView的滚动偏移量scrollView.contentOffset = CGPointMake(0, 200);2、contentSize 默认CGSizeZero,用来... 阅读全文
posted @ 2015-08-17 11:22 CheungSir 阅读(148) 评论(0) 推荐(0)
摘要: 1、text:设置标签显示文本。lable.text = @"123";2、attributedText:设置标签属性文本。//Ios代码 NSString *text = @"first";NSMutableAttributedString *textLabelStr = [[NSMutableA... 阅读全文
posted @ 2015-08-17 10:44 CheungSir 阅读(241) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7