iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
alexrezit
V2EX  ›  iDev

MIT 开源 PRSizeFormatter

  •  
  •   alexrezit · Dec 17, 2013 · 3176 views
    This topic created in 4667 days ago, the information mentioned may be changed or developed.
    Format sizes to human readable format.


    这个玩意儿是 Project Rhinestone 的副产品, 顺手把能支持的标准和格式都尽量支持了.


    Features

    * 2 standards: Decimal (1000), Binary (1024);
    * 9 prefixes: none, K, M, G, T, P, E, Z, Y;
    * 4 prefix types (expanded & abbreviated): Hybrid (used by Apple), Metric, JEDEC, IEC;
    * 2 base units (expanded & abbreviated): byte (B), bit (b);
    * Customizable available prefixes range;
    * Customizable abbrev cap;
    * Customizable number of digits after decimal point;
    * Customizable option for trimming trailing zeros after decimal point;
    * Customizable option for whether to use "Zero" to replace "0" when the size is 0.


    ref: https://github.com/AlexRezit/PRSizeFormatter
    1 replies  •  1970-01-01 08:00:00 +08:00
    kevinzhow
        1
    kevinzhow  
       Dec 17, 2013
    Cool!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2024 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 16:12 · PVG 00:12 · LAX 09:12 · JFK 12:12
    ♥ Do have faith in what you're doing.