NSFormatter 子类集合 FormatterKit
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/mattt/FormatterKit
软件介绍
FormatterKit 收集了一系列精心设计的 NSFormatter
子类,例如信息单元,距离和相对时间间隔。每一个 formatter 从他们各自领域的复杂商业逻辑中抽离出来,所以你可以专注用于你的应用程序。
示例代码:
TTTTimeIntervalFormatter *timeIntervalFormatter = [[TTTTimeIntervalFormatter alloc] init]; [timeIntervalFormatter stringForTimeInterval:0]; // "just now" [timeIntervalFormatter stringForTimeInterval:-100]; // "1 minute ago" [timeIntervalFormatter stringForTimeInterval:-8000]; // "2 hours ago" // Turn idiomatic deictic expressions on / off [timeIntervalFormatter stringForTimeInterval:-100000]; // "1 day ago" [timeIntervalFormatter setUsesIdiomaticDeicticExpressions:YES]; [timeIntervalFormatter stringForTimeInterval:-100000]; // "yesterday" // Customize the present tense deictic expression for [timeIntervalFormatter setPresentDeicticExpression:@"seconds ago"]; [timeIntervalFormatter stringForTimeInterval:0]; // "seconds ago" // Expand the time interval for present tense [timeIntervalFormatter stringForTimeInterval:-3]; // "3 seconds ago" [timeIntervalFormatter setPresentTimeIntervalMargin:10]; [timeIntervalFormatter stringForTimeInterval:-3]; // "seconds ago"
iOS Web应用开发
皮基 (Andrea Picchi) / 罗晴明 / 人民邮电出版社 / 2013-8-1 / CNY 79.00
本书介绍了如何使用Web标准技术来为iPhone和iPad制作Web应用。书中利用最前沿的Web和移动技术,演示了如何使用HTML5来完成繁重的基础工作,如何使用CSS3来制作外观,以及如何使用JavaScript来为移动网站或Web应用添加程序逻辑。 通过阅读本书,读者可以掌握面向移动的项目的开发流程。作者逐章递进,引导读者了解iOS设计与开发的各个步骤。读者可以学习到如下知识: 设......一起来看看 《iOS Web应用开发》 这本书的介绍吧!
Base64 编码/解码
Base64 编码/解码
MD5 加密
MD5 加密工具
