Latest 1.0.1
Homepage https://github.com/FlyKite/FKLogUnicode
License MIT
Platforms ios 7.0, requires ARC
Authors

能让你的代码在使用NSLog输出字典和数组的时候直接输出中文而不是Unicode编码。
It will replace unicode to Chinese when you use NSLog(@"%@", dict).

使用指南

只需要将FKLogUnicode.m导入你的项目,不需要再添加任何一行代码即可生效~
Just import FKLogUnicode.m into your project, then it will effects.

CocoaPods: pod 'FKLogUnicode'

效果

代码/Code

  NSDictionary *dict = @{
                        @"作者" : @"FlyKite",
                        @"作用" : @"让NSLog输出字典和数组的时候输出汉字而不是Unicode编码"
                        };
  NSLog(@"%@", dict);

输出/Output

2015-12-29 14:03:40.930 FKLogUnicodeDemo[1635:771643] {
    "作用" = "让NSLog输出字典和数组的时候输出汉字而不是Unicode编码";
    "作者" = FlyKite;
}

Latest podspec

{
    "name": "FKLogUnicode",
    "version": "1.0.1",
    "summary": "A util to replace unicode char to Chinese when you use NSLog.",
    "homepage": "https://github.com/FlyKite/FKLogUnicode",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "FlyKite": "[email protected]"
    },
    "social_media_url": "http://blog.fly-kite.com",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/FlyKite/FKLogUnicode.git",
        "tag": "1.0.1"
    },
    "requires_arc": true,
    "source_files": "FKLogUnicode/*.{m}"
}

Pin It on Pinterest

Share This