Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexito4/ampavatarview
A simple UIView subclass that shows an UIImage with a shadow in a circle.
https://github.com/alexito4/ampavatarview
Last synced: about 2 months ago
JSON representation
A simple UIView subclass that shows an UIImage with a shadow in a circle.
- Host: GitHub
- URL: https://github.com/alexito4/ampavatarview
- Owner: alexito4
- License: mit
- Created: 2013-06-29T10:35:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-27T08:24:28.000Z (over 10 years ago)
- Last Synced: 2024-05-01T21:49:17.387Z (8 months ago)
- Language: Objective-C
- Size: 435 KB
- Stars: 44
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
AMPAvatarView
=============[![Version](https://img.shields.io/cocoapods/v/AMPAvatarView.svg?style=flat)](http://cocoadocs.org/docsets/AMPAvatarView)
[![License](https://img.shields.io/cocoapods/l/AMPAvatarView.svg?style=flat)](http://cocoadocs.org/docsets/AMPAvatarView)
[![Platform](https://img.shields.io/cocoapods/p/AMPAvatarView.svg?style=flat)](http://cocoadocs.org/docsets/AMPAvatarView)A simple UIView subclass that shows an UIImage with a shadow in a circle.
**Posted to put Objective-C [Back on the Map](https://objectivechackathon.appspot.com/) again!**
Usage
=============
You can create an instance of this view using code or IB.AMPAvatarView *avatar = [[AMPAvatarView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
avatar.image = [UIImage imageNamed:@"avatar"];
[self.view addSubview:avatar];
You can change some properties.- The image (really?)
- Border width
- Border color
- Shadow radius
- Shadow colorExample
=============
Just a simple example to show how you can change a couple of things.![AMPAvatarView example](/example.png "Project example")
## Installation
AMPAvatarView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:pod "AMPAvatarView"
## Author
Alejandro Martinez, [email protected]
## License
AMPAvatarView is available under the MIT license. See the LICENSE file for more info.