没有合适的资源?快使用搜索试试~ 我知道了~
TextKit_LineNumbers:iOS7文本工具包-带行号的文本视图
共32个文件
m:6个
h:5个
storyboard:4个
需积分: 8 0 下载量 85 浏览量
2021-05-25
13:42:53
上传
评论
收藏 331KB ZIP 举报
温馨提示
TextKit行号 此示例代码演示了在iOS7 UITextView中显示行号的一种方法。 这利用了iOS7的Text Kit类,并且可以容纳从一个段落到另一个段落具有不同字体的文本。 工作的重点在LineNumbersLayoutManager类(NSLayoutManager的子类)中进行。 此版本同时具有Objective-C和Swift示例。 表现 我在iPad 3上注意到,第一次向下滚动文本时会出现明显的卡顿现象。 我花了一些时间来分析代码,而这些延迟似乎发生在TextKit中。 我的范围到段落数的计算可能会更快,但似乎并不是最重要的CPU用户。 如果您的应用程序提供了一种将字符范围映射到段落编号的有效方法,则可以用自己的代码替换-[LineNumbersLayoutManager __paraNumberForRange:]方法。 待办事项 行号装订线宽度是固定的。 随着
资源推荐
资源详情
资源评论
收起资源包目录
TextKit_LineNumbers-master.zip (32个子文件)
TextKit_LineNumbers-master
TextKit_LineNumbers_swift.xcodeproj
project.pbxproj 15KB
TextKit_LineNumbers
ViewController.m 3KB
TextKit_LineNumbers-Prefix.pch 344B
Sample.rtf 6KB
en.lproj
InfoPlist.strings 45B
main.m 366B
TextKit_LineNumbers-Info.plist 2KB
Base.lproj
Main_iPad.storyboard 2KB
Main_iPhone.storyboard 2KB
Images.xcassets
LaunchImage.launchimage
Contents.json 1KB
AppIcon.appiconset
Contents.json 1KB
ViewController.h 358B
AppDelegate.h 306B
AppDelegate.m 2KB
TextKit_LineNumbers.xcodeproj
project.xcworkspace
contents.xcworkspacedata 164B
xcuserdata
mall.xcuserdatad
xcschemes
xcschememanagement.plist 581B
TextKit_LineNumbers.xcscheme 4KB
project.pbxproj 18KB
LineNumberTextView
LineNumberTextViewWrapper.h 1KB
LineNumberTextViewWrapper.m 2KB
LineNumberTextView.h 667B
LineNumberLayoutManager.h 418B
LineNumberTextView.m 4KB
LineNumberLayoutManager.m 8KB
TextKit_LineNumbers_swift
ViewController.swift 3KB
Info.plist 1KB
AppDelegate.swift 454B
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 4KB
Assets.xcassets
AppIcon.appiconset
Contents.json 919B
README.md 3KB
Screenshot.png 316KB
共 32 条
- 1
资源评论
好摩
- 粉丝: 28
- 资源: 4635
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功