// // Copyright 2014 Carlos Compean. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #import IB_DESIGNABLE @interface CCMBorderView: UIView typedef NS_OPTIONS(NSInteger, Border){ Border_None, Border_Bottom, Border_Left, Border_Top, Border_Right }; @property IBInspectable CGFloat borderWidth; @property IBInspectable CGFloat cornerRadius; @property IBInspectable UIColor* borderColor; @property IBInspectable BOOL borderBottom; @property IBInspectable BOOL borderRight; @property IBInspectable BOOL borderLeft; @property IBInspectable BOOL borderTop; -(id)initWithFrame:(CGRect)frame border:(Border)border radius:(double)radius color:(UIColor *)color borderWidth:(double)width; - (void)updateView; @end // 版权属于原作者 // http://code4app.com (cn) http://code4app.net (en) // 发布代码于最专业的源码分享网站: Code4App.com