• Stars
    star
    291
  • Rank 142,563 (Top 3 %)
  • Language
    Objective-C
  • License
    Apache License 2.0
  • 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

Rounded Corners Without Images

#TKRoundedView

##Features

Simple rounded corners without images

Screenshot Screenshot

##Example usage

	NSArray *gradientColorsAndLocations = (@[
                                           @{colorKey: [UIColor blackColor],locationKey: @(0.0f)},
                                           @{colorKey: [UIColor lightGrayColor]  ,locationKey: @(0.5f)},
                                           @{colorKey: [UIColor whiteColor],locationKey: @(1.0f)}
                                           ]);
	
	TKRoundedView *view = [[TKRoundedView alloc] initWithFrame:frame];
	view.roundedCorners = TKRoundedCornerTopLeft
	view.borderColor = [UIColor greenColor];
	view.fillColor = [UIColor whiteColor];
	view.gradientColorsAndLocations = gradientColorsAndLocations;
	view.gradientDirection = TKGradientDirectionDown;
	view.drawnBordersSides = TKDrawnBorderSidesLeft | TKDrawnBorderSidesTop;
	view.borderWidth = 5.0f;
	view.cornerRadius = 15.0f;

##Parameters

  • cornerRadius
  • borderWidth
  • borderColor
  • fillColor
  • rounded corners
  • drawn borders
  • gradient with any number of colors
  • gradient location

##Example project

YES

##Contact

##License

Apache