CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

PSCellStyleButton 0.0.4

PSCellStyleButton 0.0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Predrag Samardzic.



  • By
  • Predrag Samardzic

PSCellStyleButton

Simple UIButton looking similar to UITableVIewCell with separator and disclosure indicator


Alt text

Installation

Copy PSCellStyleButton folder into your project

Installation - CocoaPods

Swift


pod 'PSCellStyleButton'

Objective-C


pod 'PSCellStyleButton'
use_frameworks!

How To Use

In Interface Builder set your button's class to PSCellStyleButton


Properties:

  • showDisclosureIndicator - boolean controlling if right image is shown
  • showBottomLine - boolean controlling if bottom line is shown
  • bottomLineColor - black by default
  • bottomLineHeight - 1.0 by default
  • bottomLineRightInset - CGFloat controlling where does bottom line start at the right side of the button; 15 by default
  • bottomLineLeftInset - CGFloat controlling where does bottom line start at the left side of the button; 15 by default
  • titleRightInset - CGFloat controlling how far from the left side of the button title is; 0 by default
  • imageLeftInset - CGFloat controlling how far from the right side of the button image is; 15 by default
  • rightImage - right side Image; rightArrow.png(disclosure indicator) by default
## Requirements iOS>=8 ## Author Predrag Samardzic, [email protected] ## License PSCellStyleButton is available under the MIT license. See the LICENSE file for more info.