Skip to content

briankracoff/BKDoodleView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BKDoodleView

BKDoodleView is a drawing view for iOS applications. You can change the color, opacity, and size of the brush.

Adding BKDoodleView to your project

You can directly add the BKDoodleView.h and BKDoodleView.m source files to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, than drag and drop BKDoodleView.h and BKDoodleView.m onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include BKDoodleView wherever you need it with #import "BKDoodleView.h".

Using BKDoodleView

Creating a DoodleView

You can create a BKDoodleView in the following ways:

+ (id)doodleView;
+ (id)doodleViewWithFrame:(CGRect)frame;

Configuring a BKDoodleView

//Add a background image to draw on
- (void)setBackgroundImage:(UIImage*)backgroundImage contentMode:(UIViewContentMode)contentMode;
//Set RGBA values
- (void)setRed:(CGFloat)red blue:(CGFloat)blue green:(CGFloat)green alpha:(CGFloat)alpha;
//Set brush size
- (void)setBrushSize:(CGFloat)size;
//Set frame
- (void)setFrame:(CGRect)frame;

License

This code is distributed under the terms and conditions of the MIT license.

Change-log

Version 0.1 @ 4/1/13

  • Initial release

About

A drawing view for iOS applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published