码迷,mamicode.com
首页 >  
搜索关键字:nsattributedstring    ( 117个结果
iOS-NSAttributedString
一、NSAttributeString简介 NSAttributedString叫做富文本,是一种带有属性的字符串,通过它可以轻松的在一个字符串中表现出多种字体、字号、字体大小等各不相同的风格,还可以对段落进行格式化。 二、字符属性 1.NSString *const NSFontAttribute ...
分类:移动开发   时间:2016-06-12 18:25:01    阅读次数:164
修改placeholder的字体颜色
第一种 UIColor *color = [UIColor whiteColor]; _userName.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"用户名" attributes:@{NSForegrou ...
分类:其他好文   时间:2016-06-12 18:09:29    阅读次数:130
iOS学习之NSAttributedString(富文本)
NSAttributedString 叫做富文本,是一种带有属性的字符串,通过它可以轻松的在一个字符串中表现出多种字体、字号、字体大小等各不相同的风格,还可以对段落进行格式化,一般都是对可变富文本(NSMutableAttributedString)进行一些操作 一、NSMutableAttribu ...
分类:移动开发   时间:2016-06-12 12:06:56    阅读次数:192
iOS-NSAttributedString
一、NSAttributeString简介 NSAttributedString叫做富文本,是一种带有属性的字符串,通过它可以轻松的在一个字符串中表现出多种字体、字号、字体大小等各不相同的风格,还可以对段落进行格式化。 二、字符属性 1.NSString *const NSFontAttribute ...
分类:移动开发   时间:2016-06-10 14:53:54    阅读次数:444
Attributes:文本属性 和NSAttributedString
前言: 有一些控件无法直接设置文本大小,需要使用方法 setTitleTextAttributes 来设置文本属性 UIFont 字体样式 [UIFont fontWithName~]; iOS- 详解文本属性Attributes - 清澈Saup - 推酷 ...
分类:其他好文   时间:2016-06-08 19:00:20    阅读次数:154
改变输入框的placehould的颜色
UIColor *color = [UIColor whiteColor]; _usernameTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入账号" attributes:@{NSF ...
分类:其他好文   时间:2016-06-02 13:06:01    阅读次数:216
解决CATextLayer在越狱设备上字体颜色问题。
最近在做画k线的一个悬浮窗时候,用到了CATextLayer,然后在排版的时候,越狱设备字体颜色一直为全黑,于是stackoverflow了一下,发现相似问题决解办法是这样的 然后还是没效果,我就猜测是否是因为颜色值根本没设上。在使用NSAttributedString的属性设置有问题。最开始设置文 ...
分类:其他好文   时间:2016-05-31 18:38:17    阅读次数:165
NSAttributedString.h 中文本属性key的说明-06
...
分类:其他好文   时间:2016-05-16 20:02:11    阅读次数:220
iOS 字符属性NSAttributedString描述
字符属性    字符属性可以应用于 attributed string 的文本中。    NSString *const NSFontAttributeName;(字体)    NSString *const NSParagraphStyleAttributeName;(段落)    NSString *const NSForegroundColor...
分类:移动开发   时间:2016-05-12 20:21:57    阅读次数:168
NSMutableAttributedString使用介绍
与NSString类似,在iOS中AttributedString也分为NSAttributedString和NSMutableAttributedString,不同的是,AttributedString对象多了一个Attribute的概念,一个AttributedString的对象包含很多的属性,每一个属性都有其对应的字符区域,在这里是使用NSRange来进行描述的。     使用Attrib...
分类:其他好文   时间:2016-05-03 18:38:29    阅读次数:237
117条   上一页 1 2 3 4 5 6 ... 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!