Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
更改 UIAlertController 的标题字体大小
我正在尝试更改标题fontSize in an UIAlertController 但我无法管理如何设置我的NSMutableAttributedString to the title 财产 所以我一直在创造NSMutableAttribu
swift
swift4
NSMutableAttributedString
uialertviewcontroller
使用 NSMutableAttributedString 更改 WKInterfaceLabel 的文本颜色
我正在尝试使用 setAttributedText 属性更改 WKInterfaceLabel 中的文本颜色 这是代码 MyRowController row self interfaceTable rowControllerAtIndex
UIColor
watchkit
NSMutableAttributedString
在 iOS 的 swift 中使用纯文本(Android 格式)创建属性字符串
我正在从 Localized strings 中读取字符串 其中包含类似的内容 这基本上就是 Android 应用程序的 strings xml 中的内容 testShort A b short b ntest with another b
ios
xcode
swift
NSAttributedString
NSMutableAttributedString
NSMutableAttributedString:如何在 iOS 上以编程方式删除最后一个字符?
我有一个自定义键盘 我必须在将 nsmutableattributedstring 作为文本 字符和 nstextattachment 的组合 的文本视图上执行退格操作 根据 Moxy 的说法 如果您的最后一个字符足够大 无法容纳在单个 U
ios
Objectivec
swift
string
NSMutableAttributedString
使用 UITextView 和 NSMutableAttributedString 对齐文本
我正在尝试为一个合理的文本UITextView with NSMutableAttributedString the NSMutableAttributedString是由不同的NSAttributedString因为我需要粗体和常规字体
ios
Objectivec
UITextView
NSAttributedString
NSMutableAttributedString
快速为所有出现的字符串着色
这段代码 var textSearch hi var textToShow hi hihi hi var rangeToColor textToShow as NSString rangeOfString textSearch var at
ios
swift
nsstring
NSMutableAttributedString
如何更改 textView 中预选单词的样式?
这是这个问题的后续如何在 Swift 中一一更改 UITextView 中某些单词的样式 https stackoverflow com questions 40517321 how can i change style of some w
ios
swift
UITextView
swift3
NSMutableAttributedString
对 iOS 中 UITextView 的选定文本应用富文本格式
我正在创建一个应用程序 我必须在其中实现如下功能 1 写入textview 2 从文本视图中选择文本 3 允许用户对所选文本应用粗体 斜体和下划线功能 我已经开始使用 NSMutableAttributedString 来实现它 它适用于粗
ios
UITextView
NSMutableAttributedString
在 Swift 中将 NSUnderlineStyle.PatternDash 添加到 NSAttributedString 中?
我正在尝试为 Swift 应用程序中的某些文本添加下划线 这是我目前拥有的代码 let text NSMutableAttributedString string self currentHome name let attrs NSUnde
ios
swift
NSAttributedString
NSMutableAttributedString
制作具有静态和属性前缀的 UITextField
我想做一个UITextField 它有一个静态前缀并且用户cannot编辑或删除 同时也赋予浅灰色字体颜色 文本字段的可编辑部分应始终以黑色显示 下面给出一个例子 它本质上是用于输入带有恒定前缀域的用户名 我已经尝试过使用textField
ios
UITextField
NSMutableAttributedString
如何更改标签中某些单词的颜色 - Swift 3 [重复]
这个问题在这里已经有答案了 创建一个带有简单文本的标签 如何更改标签中某些文字的颜色 Swift 3 就像下面这样 Use NSMutableAttributedString为字符串中的不同单词应用颜色 试试这个 已经有很多类似的问题在 S
swift
Colors
label
swift3
NSMutableAttributedString
NSMutableAttributedString 的属性 NSStrikethroughStyleAttributeName 在 iOS8 中无法正常工作
我有一个没有 NSStrikethroughStyleAttributeName 属性的可变属性字符串 如下所示 NSMutableAttributedString str1 NSMutableAttributedString alloc
ios
iOS8
NSAttributedString
strikethrough
NSMutableAttributedString
将 NSAttributedString 添加到 UIBarButtonItem
我正在尝试在后栏按钮项目上设置属性字符串 这是我第一次尝试属性字符串 这是代码 self navigationItem hidesBackButton true let barButtonBackStr lt Back var attrib
swift
UIBarButtonItem
NSMutableAttributedString
NSMutableAttributedString的Key
NSFontAttributeName 字体 xff0c value是UIFont对象 NSParagraphStyleAttributeName 绘图的风格 xff08 居中 xff0c 换行模式 xff0c 间距等诸多风格 xff09
NSMutableAttributedString
key