LetsPod 5.0× 测试已测试✓ 语语言 SwiftSwift许可 自定义 发布最新发布2019年6月 SPM支持SPM✗由Lokesh Dudhat,Pratik Patel维护。安装指南×LetsPod安装指南您要将类似下面的代码 pod 'LetsPod', '~> 5.0' 添加到Podfile中target 'MyApp' do pod 'LetsPod', '~> 5.0' end然后在终端中运行 pod install,或从CocoaPods.app运行。或者,为了进行测试,运行以下命令pod tryLetsPod查看Podspec主页CocoaPods.org上的页面LetsPod 5.0由LetsNurture和Pratik PatelLetsNurture LetsNurture的Pod 使用方法 要运行示例项目,首先克隆repo,然后从Example目录运行 pod install。 需求 iOS 8 安装 LetsPod可通过CocoaPods获取。要安装它,只需将以下行添加到Podfile中 $ sudo gem install cocoapods source 'https://github.com/CocoaPods/Specs.git' use_frameworks! pod "LetsPod" 功能 LetsButton(IBDesignable) LetsImageView(IBDesignable) LetsLabel(IBDesignable) LetsTextField(IBDesignable) LetsTextView(IBDesignable) LetsView(IBDesignable) NSDate(扩展) UISearchBar(扩展) UIImage(扩展) UIToolbar(扩展) UINavigationBar(扩展) String(扩展) UIViewController(扩展) 值 [ ] 不可检测 [x] 可检测 LetsButton(IBDesignable) [ ] topBorderView:UIView [ ] bottomBorderView:UIView [ ] leftBorderView:UIView [ ] rightBorderView:UIView [x] isRightImage:Bool [x] highlightedImage:UIImage [x] normalImage:UIImage [x] normalTextColor:UIColor [x] highlightedTextColor:UIColor [x] highlightedBackgroundColor:UIColor [x] normalBackgroundColor:UIColor [x] borderColor:UIColor [x] borderWidth:CGFloat [x] cornerRadius:CGFloat [x] isCircle:Bool [x] topBorderColor:UIColor [x] topBorderHeight:CGFloat [x] bottomBorderColor:UIColor [x] bottomBorderHeight:CGFloat [x] leftBorderColor:UIColor [x] leftBorderHeight:CGFloat [x] rightBorderColor:UIColor [x] rightBorderHeight:CGFloat LetsImageView(IBDesignable) [ ] topBorder:UIView [ ] bottomBorder:UIView [ ] leftBorder:UIView [ ] rightBorder:UIView [x] borderColor:UIColor [x] borderWidth:CGFloat [x] cornerRadius:CGFloat [x] topBorderColor:UIColor [x] topBorderHeight:CGFloat [x] bottomBorderColor:UIColor [x] bottomBorderHeight:CGFloat [x] leftBorderColor:UIColor [x] leftBorderHeight:CGFloat [x] rightBorderColor:UIColor [x] rightBorderHeight:CGFloat LetsLabel(IBDesignable) [ ] topBorder:UIView [ ] bottomBorder:UIView [ ] leftBorder:UIView [ ] rightBorder:UIView [x] borderColor:UIColor [x] borderWidth:CGFloat [x] isCircle:Bool [x] cornerRadius:CGFloat [x] fitToWidth:Bool [x] paddingLeft: CGFloat [x] topBorderColor:UIColor [x] topBorderHeight:CGFloat [x] bottomBorderColor:UIColor [x] bottomBorderHeight:CGFloat [x] leftBorderColor:UIColor [x] leftBorderHeight:CGFloat [x] rightBorderColor:UIColor [x] rightBorderHeight:CGFloat LetsTextField (IBDesignable) [ ] topBorder:UIView [ ] bottomBorder:UIView [ ] leftBorder:UIView [ ] rightBorder:UIView [ ] leftimageView : UIImageView [ ] rightimageView : UIImageView [x] rightImage : UIImage [x] rightViewWidth : CGFloat [x] borderColor:UIColor [x] borderWidth:CGFloat [x] cornerRadius:CGFloat [x] placeHolderColor : UIColor [x] leftImage : UIImage [x] leftViewWidth : CGFloat [x] paddingLeft: CGFloat [x] paddingRight: CGFloat [x] topBorderColor:UIColor [x] topBorderHeight:CGFloat [x] bottomBorderColor:UIColor [x] bottomBorderHeight:CGFloat [x] leftBorderColor:UIColor [x] leftBorderHeight:CGFloat [x] rightBorderColor:UIColor [x] rightBorderHeight:CGFloat LetsTextView (IBDesignable) [x] placeholderLabel: UILabel [x] placeholderColor : UIColor [x] placeholder : String LetsView (IBDesignable) [x] topBorder: UIView [x] bottomBorder: UIView [x] leftBorder: UIView [x] rightBorder: UIView [x] borderColor:UIColor [x] borderWidth:CGFloat [x] cornerRadius:CGFloat [x] topBorderColor:UIColor [x] topBorderHeight:CGFloat [x] bottomBorderColor:UIColor [x] bottomBorderHeight:CGFloat [x] leftBorderColor:UIColor [x] leftBorderHeight:CGFloat [x] rightBorderColor:UIColor [x] rightBorderHeight:CGFloat NSDate (Extension) [ ] day: UInt [ ] month: UInt [ ] year: UInt [ ] hour: UInt [ ] minute: UInt [ ] second: UInt [ ] public func isGreaterThan(date: NSDate) -> Bool [ ] public func isLessThan(date: NSDate) -> Bool [ ] public func plusSeconds(s: UInt) -> NSDate [ ] public func minusSeconds(s: UInt) -> NSDate [ ] public func plusMinutes(m: UInt) -> NSDate [ ] public func minusMinutes(m: UInt) -> NSDate [ ] public func plusHours(h: UInt) -> NSDate [ ] public func minusHours(h: UInt) -> NSDate [ ] public func plusDays(d: UInt) -> NSDate [ ] public func minusDays(d: UInt) -> NSDate [ ] public func plusWeeks(w: UInt) -> NSDate [ ] public func minusWeeks(w: UInt) -> NSDate [ ] public func plusMonths(m: UInt) -> NSDate [ ] public func minusMonths(m: UInt) -> NSDate [ ] public func plusYears(y: UInt) -> NSDate [ ] public func minusYears(y: UInt) -> NSDate [ ] public func midnightUTCDate() -> NSDate [ ] public class func secondsBetween(date1 d1:NSDate, date2 d2:NSDate) -> Int [ ] public class func minutesBetween(date1 d1: NSDate, date2 d2: NSDate) -> Int [ ] public class func hoursBetween(date1 d1: NSDate, date2 d2: NSDate) -> Int [ ] public class func daysBetween(date1 d1: NSDate, date2 d2: NSDate) -> Int [ ] public class func weeksBetween(date1 d1: NSDate, date2 d2: NSDate) -> Int [ ] public class func monthsBetween(date1 d1: NSDate, date2 d2: NSDate) -> Int [ ] public class func yearsBetween(date1 d1: NSDate, date2 d2: NSDate) -> Int UISearchBar (Extension) [ ] func radiusRemove() UIImage (Extension) [ ] getPixelColor(pos: CGPoint) -> UIColor UIToolbar (Extension) [ ] showHairline() [ ] hideHairline() UINavigationBar (Extension) [ ] showBottomHairline() [ ] hideBottomHairline() String (Extension) [ ] length : Int [ ] ns: NSString [ ] pathExtension: String [ ] lastPathComponent: String UIViewController (Extension) [ ] 自动移除表格分隔线 LetsPod for the LN Team.