随笔分类 -  UI控件

摘要:1.Image 设置图片,默认显示 UIImageView *_imageView = [[UIImageView alloc]init]; _imageView.image = [UIImage imageNamed:@"me.png"]; 2.highlightedImage 设置高亮状态下显示 阅读全文
posted @ 2016-03-09 18:48 朱保锋 阅读(159) 评论(0) 推荐(0)
摘要:text:设置标签显示文本。 attributedText:设置标签属性文本。 Ios代码 NSString *text = @"first"; NSMutableAttributedString *textLabelStr = [[NSMutableAttributedString alloc] 阅读全文
posted @ 2016-03-09 18:45 朱保锋 阅读(134) 评论(0) 推荐(0)
摘要:1.UIButton状态: UIControlStateNormal // 正常状态 UIControlStateHighlighted // 高亮状态 UIControlStateDisabled // 禁用状态 UIControlStateSelected // 选中状态 UIControlSt 阅读全文
posted @ 2016-03-09 18:40 朱保锋 阅读(154) 评论(0) 推荐(0)