Latest 1.0.0
Homepage https://github.com/bengovernment/BPBorderView
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Ben Palmer/BPBorderView.svg?style=flat)](https://travis-ci.org/Ben Palmer/BPBorderView)
Version
License
Platform

BPBorderView

A simple UIView subclass which takes some flags on initialization for easy set up of border subviews.

Installation

BPBorderView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "BPBorderView"

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

Import the pod wherever you may need the BPBorderView Subclass

#import <BPBorderView/BPBorderView.h>

Initialize a view with one of the two initializers


//use the simple initializer, defaults to 1px 
BPBorderView *view = [[BPBorderView alloc] 
    initWithFrame:someRect 
    borderOrientationFlags:BPBorderViewOrientationRight];

//or set the color and border width as well
BPBorderView *view = [[BPBorderView alloc] 
    initWithFrame:someRect 
    borderOrientationFlags:BPBorderViewOrientationBottom 
    borderColor:[UIColor redColor] 
    borderWidth:1.0];

//use the bitwise OR to pile on more orientation options
BPBorderView *view2 = [[BPBorderView alloc] 
    initWithFrame:someRect 
    borderOrientationFlags:BPBorderViewOrientationRight
        | BPBorderViewOrientationLeft
        | BPBorderViewOrientationBottom
        | BPBorderViewOrientationTop];

Put borders on all the things!

Author

Ben Palmer, [email protected]

License

BPBorderView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BPBorderView",
    "version": "1.0.0",
    "summary": "UView subclass with easy borders",
    "description": "UView subclass with easy borders. Allows addition of borders with composable flags on view initilization. Customize position, width, and color.",
    "homepage": "https://github.com/bengovernment/BPBorderView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ben Palmer": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bengovernment/BPBorderView.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/bengovernment",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BPBorderView/Classes/**/*"
}

Pin It on Pinterest

Share This