/PSCellStyleButton

Simple UIButton looking similar to UITableVIewCell with separator and disclosure indicator

Primary LanguageSwiftMIT LicenseMIT

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', '~> 0.0.4'

Objective-C


pod 'PSCellStyleButton', '~> 0.0.4'
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, predragsamardzic13@gmail.com ## License PSCellStyleButton is available under the MIT license. See the LICENSE file for more info.