Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danramteke/drtap
.tap from Ruby implemented as a category on NSObject
https://github.com/danramteke/drtap
Last synced: 4 days ago
JSON representation
.tap from Ruby implemented as a category on NSObject
- Host: GitHub
- URL: https://github.com/danramteke/drtap
- Owner: danramteke
- License: mit
- Created: 2013-09-13T21:14:43.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-16T20:14:55.000Z (over 11 years ago)
- Last Synced: 2024-03-15T11:51:30.774Z (10 months ago)
- Language: Objective-C
- Size: 152 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
DRTap
=====.tap from Ruby implemented as a category on NSObject
Add this line to your Podfile:
pod 'DRTap'
Example:
#import "NSObject+DRTap.h"
// ...
UILabel* label = [[[UILabel alloc] init] tap:^(UILabel* lbl){
lbl.text = @"Hello";
lbl.textColor = [UIColor whiteColor];
lbl.font = [UIFont systemFontOfSize:88];
lbl.backgroundColor = [UIColor blackColor];
[lbl sizeToFit];
}];
[self.view addSubview:label];