Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
TextKit:Xcode 中的编辑器占位符功能是如何实现的?
我深入研究了 TextKit 想知道编辑器占位符是如何在 Xcode 代码编辑器中实现的 您也可以自己尝试一下并输入以下内容 lt Hello gt 它会自动变成占位符 Xcode 编辑器是使用 TextKit 构建的 经过一番研究 我想出
xcode
cocoa
NSAttributedString
textkit
nstextattachment
循环遍历 NSAttributedString 属性以增加字体大小
我需要的只是循环遍历所有属性NSAttributedString并增加字体大小 到目前为止 我已成功循环并操作属性 但无法保存回NSAttributedString 我注释掉的行对我不起作用 怎么救回来 NSAttributedString
ios
Objectivec
NSAttributedString
编码 NSAttributedString 会引发错误
根据已接受的答案这个问题 https stackoverflow com questions 2626667 saving custom attributes in nsattributedstring 我写了以下代码 NSData som
Objectivec
nskeyedarchiver
NSAttributedString
nscoder
无法让属性字符串在 Swift 中工作
我试图在代码中设置字符串的一些属性 但无法得到NSAttributedString上班 这是应该更改字符串的函数 func getAttributedString string String gt NSAttributedString va
ios
swift
NSAttributedString
NSAttributedString initWithData:options:documentAttributes:error: 非常慢
我使用这些代码行从简单的 HTML 字符串创建属性字符串 NSDictionary importParams NSDocumentTypeDocumentAttribute NSHTMLTextDocumentType NSCharacte
html
ios
NSAttributedString
CoreText
如何使用 NSAttributedString?
多种颜色在一个NSString or NSMutableStrings是不可能的 所以我听说过一些关于NSAttributedString http developer apple com mac library documentation
ios
ios4
NSAttributedString
TextColor
在 Swift 中仅更改 AttributedText 的字体
我在 IB 中创建了许多 UILabel 它们都有属性文本 每个标签的文本包含多行不同字体大小和颜色 在运行时 我希望能够仅更改这些标签的字体名称 而不更改现有的字体大小或颜色 我进行了研究 但找不到直接的方法来实现这一目标 有任何想法吗
ios
swift
NSAttributedString
uifont
NSString:去掉
并为该段创建带有颜色的属性字符串?
假设我有一个字符串 这是一个简单的字符串 我需要去掉 抱歉 b 和尖括号之间没有空格 由于某种原因预览没有显示它 同时将 simple 这个词加粗 我的想法是 将尖括号和 br 替换为空白 使 简单 段具有属性 问题是一旦标签被删除 我仍然
ios
Objectivec
nsstring
NSAttributedString
iPhone CoreText:查找子字符串的像素坐标
这是 Twitter 应用程序的屏幕截图供参考 http screencast com t YmFmYmI4M http screencast com t YmFmYmI4M 我想要做的是将浮动弹出窗口放置在可以跨越多行的 NSAttrib
iphone
ios4
Substring
NSAttributedString
CoreText
UIButton 上的 iOS NSAttributedString
我在用着iOS 6 所以属性字符串应该很容易使用 对吗 嗯 没那么多 我想做的事 使用自定义子类UIButton 它没有做任何定制的事情titleLabel 我想要一个多行属性标题 即 第一行全部大写 我意识到这不是属性的一部分 Bolde
ios
UIButton
NSAttributedString
对于具有行间距和多种颜色的单行文本,UILabel 大小不正确
我很确定这实际上是一个 UIKit 错误 但想获得一些输入来看看我是否在这里遗漏了一些愚蠢的东西 这是我的代码 single line with modified line spacing and 2 colors broken line
ios
cocoatouch
UIKit
UILabel
NSAttributedString
UITextview打字属性不起作用
我有 UITextView 我想将其行高设置为 50 0f 所以我使用打字属性 但没有任何效果 我的代码在 ViewDidAppear 方法中像这样 UITextView textView UITextView alloc initWith
ios
UITextView
NSAttributedString
UIButton setAttributedTitle:forState:未显示
我试图在自定义 UIButton 上的标题上添加下划线 但按照发现的示例here https stackoverflow com a 15930032 329900 我无法让它显示在屏幕上 这是我尝试使用的代码 NSMutableAttri
Objectivec
ios6
UIButton
NSAttributedString
自动布局或使用 NSAttributedString 计算高度来实现 UITableViewCell 的动态高度的最佳方法是什么?
我已经按照教程进行了http raywenderlich com 73602 dynamic table view cell height auto layout http raywenderlich com 73602 dynamic t
ios
Objectivec
UITableView
autolayout
NSAttributedString
NSAttributedString initWithHTML 字符编码不正确?
NSMutableAttributedString initWithHTML documentAttributes 似乎破坏了特殊字符 NSString html Hello World notice the smart quotes NS
cocoa
NSAttributedString
为ios NSString中的某些文本添加点击事件
我有以下代码 想要使部分文本可单击并调用另一个 UIViewController 不是网站 NSMutableAttributedString str NSMutableAttributedString alloc initWithStri
ios
iphone
UIButton
NSAttributedString
uitapgesturerecognizer
设置 NSAttributed String 属性会覆盖子字符串属性
我创建了一个可变字符串 看起来像 测试 MeIn 绿色 颜色 不同 绿色 颜色 颜色 NSMutableAttributedString mutableText NSMutableAttributedString alloc initWit
Objectivec
NSAttributedString
点击 UILabel 的部分文本
我有一个问题boundingRectForGlyphRange总是返回CGRect zero 0 0 0 0 0 0 0 0 例如 我正在编写触摸文本的一部分的代码UILabel特征 我的文字第一部分是any text第二个是阅读更多 我希
ios
swift
UILabel
NSAttributedString
nslayoutmanager
NSAttributedString 冻结 UITableView
使用 NSAttributedString 滚动时应用程序确实冻结 当我使用 NSString 时它工作正常 所以我的方法是 void setSubtitleForCell TTTableViewCell cell item TTPhoto
ios
Objectivec
UITableView
NSAttributedString
给 UITextView 一个可点击的 URL 链接
嗨 我已经解决这个问题有一段时间了 我已经读了几篇文章 但我不明白如何制作可点击的UITextView在互联网上发送 这是我的代码 func transformText text String underlined Bool linkURL
ios
swift
UITextView
NSAttributedString
1
2
3
4
5
6
»