Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Objective-C Category for a custom UIButton with curled corners and shadow

branch: master
Octocat-spinner-32 curledViews.xcodeproj added files February 13, 2012
Octocat-spinner-32 curledViews Updated License February 13, 2012
Octocat-spinner-32 LICENSE Update LICENSE February 13, 2012
Octocat-spinner-32 README.md Update README.md February 13, 2012
Octocat-spinner-32 screenshot.png added screenshot February 13, 2012
README.md

What are these categories for?

While building a kids math game for iOS, I needed a custom UIButton that would make the user's profile picture look like a bordered photo that was naturally taped or paperclipped to the notebook.

screenshot

Using the library

You'll need to import the CurledViewBase and either UIButton+Curled or UIImageView+Curled files into your project:

To use it:

// instantiate your UIButton or UIImageView (outlet or programatically, doesn't matter)
// if UIButton, specify the UIControlState
[photoButton setImage:[UIImage imageNamed:@"raptor_face.png"] borderWidth:5.0 shadowDepth:10.0 controlPointXOffset:30.0 controlPointYOffset:70.0 forState:UIControlStateNormal];

That's it! Feel free to fork and add pull requests so we can incorporate your changes for everyone.

Something went wrong with that request. Please try again.