• Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    Objective-C
  • Created almost 12 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

iOS UIView with dashed or solid line border

LBorderView

iOS UIView with dashed or solid line border.

You may use the LBorderView class files in your project directly, or you may follow the steps below to clone the repo and use it as static library in your project.

Integrating into your project as static library

  1. clone the LBorderView git repository e.g. git clone git://github.com/lukagabric/LBorderView.git
  2. add LBorderView.xcodeproj to your project, make sure "Copy items into ..." is unchecked
  3. in your target's Build Phases, under Link Binary With Libraries, click on the (+) and add the libLBorderView.a library, CoreGraphics.framework and QuartzCore.framework.
  4. add the relative path to the LBorderView header in your "User Header Search Path" Build Setting
  5. add -ObjC and -all_load to Other Linker Flags in your target's build settings

Implementation sample

LBorderView *borderView = [[LBorderView alloc] initWithFrame:CGRectMake(100, 100, 200, 200)];
borderView.cornerRadius = 20;
borderView.borderType = BorderTypeDashed;
borderView.borderWidth = 2;
borderView.backgroundColor = [UIColor lightGrayColor];
borderView.borderColor = [UIColor redColor];
borderView.dashPattern = 6;
borderView.spacePattern = 6;
[self.view addSubview:borderView];

Check LBorderViewSample for more examples.

More Repositories

1

LASIImageView

iOS UIImageView subclass - download image with different progress indicators
Objective-C
295
star
2

LTransitionImageView

iOS Image View with transition between images
Objective-C
195
star
3

LGLinearFlow

iOS Collection View linear flow layout with zoom effect and variable page size; Swift 2.0 and ObjC
Objective-C
98
star
4

PyALPR

Raspberry Pi Automated License Plate Recognition
Python
86
star
5

iOS-OpenCV

iOS OpenCV Sample
84
star
6

Franko

Arduino - Self balancing robot
C++
66
star
7

LEffectLabel

iOS Text Label With Effect
Objective-C
62
star
8

MVVM-RxSwift

Example of MVVM and RxSwift
Swift
50
star
9

LPlaceholderTextView

UITextView subclass with placeholder text
Objective-C
41
star
10

LGDragDrop

iOS Drag&Drop in Objective-C and Swift 2.0
Objective-C
38
star
11

LGAudioPlayerLockScreen

iOS Swift audio player with lock screen controls
Swift
31
star
12

LRouteController

Simple class to get and draw route with optional waypoints using Google Maps SDK for iOS.
Objective-C
24
star
13

LFilterView

iOS Filter View - Checkbox and Radio
Objective-C
15
star
14

LTimer

iOS Timer
Objective-C
15
star
15

LargeDatasetSample

iOS Large Dataset Sample - Core Data and NSFetchedResultsController with search (like Contacts in Phone application)
Objective-C
11
star
16

PyOpenCV

Python + OpenCV Samples
Python
10
star
17

LHelper

iOS Helper Methods And Class Extensions
Objective-C
9
star
18

TurretPython

Face tracking turret project
Python
6
star
19

WordFinder

Graph theory - Objective C Breadth-first search example
Objective-C
6
star
20

ESP8266Light_iOS

Swift
4
star
21

LRover

Arduino Rover 2WD Robot
C++
4
star
22

TurretArduino

Face tracking turret project
Arduino
3
star
23

LTranslationsController

iOS Translations Controller handles application localization with remote localization files.
Objective-C
2
star
24

RxSwiftDelegateWrapper

Sample implementation of RxSwift Delegate Wrapper around AdMob banner and interstitial delegates
Objective-C
2
star
25

LGCDDataSource

iOS Data fetch and import into Core Data
Objective-C
1
star
26

LGDeferred

Deferred class based on PromiseKit, supports cancellation
Objective-C
1
star
27

LAbstractParser

iOS Abstract Parser
Objective-C
1
star
28

LGStackView

Control similar to UIStackView for iOS 8+
Swift
1
star