Latest 0.0.4
Homepage https://github.com/walkdianzi/DSCategories
License MIT
Platforms ios 7.0
Authors

参考自iOS-Categories的整理

有一些自己项目中需要的Category的修改及整理

Foundation

  • NSString+Size(修改了可以根据设置行间距和字体来计算文本高度,加入了得到有行间距的NSAttributedString)
  • NSArray+SafeAccess(修改某些返回值为默认值而不返回nil,如返回@"",0等)
  • NSDictionary+SafeAccess(修改某些返回值为默认值而不返回nil,如返回@"",0等)

UIKits

  • UITextView+Placeholder (加入Placeholder)
  • UIButton+frame (可以调节UIButton上图片和文字的位置)

Podfile

To integrate DSCategories into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'

target :zhefengle do

pod 'DSCategories', '~> 0.0.4'

end

Then, run the following command:

$ pod install

版本更新

0.0.4

加入NSUserDefaults

0.0.3

加入UIButton+frame

Latest podspec

{
    "name": "DSCategories",
    "version": "0.0.4",
    "summary": "u5206u7c7b",
    "description": "u5206u7c7b,UIButton+frame,UITextView+Placeholder,NSString+Size,NSArray+SafeAccess,NSDictionary+SafeAccess",
    "homepage": "https://github.com/walkdianzi/DSCategories",
    "license": "MIT",
    "authors": {
        "dasheng": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/walkdianzi/DSCategories.git",
        "tag": "0.0.4"
    },
    "source_files": [
        "Categories",
        "Categories/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "public_header_files": "Categories/**/*.h"
}

Pin It on Pinterest

Share This