Skip to content

Instantly share code, notes, and snippets.

@TheNiks
TheNiks / book.m
Created May 31, 2012 05:45 — forked from mdippery/book.m
An example of using @dynamic properties in Objective-C
#import <Foundation/Foundation.h>
@interface Book : NSObject
{
NSMutableDictionary *data;
}
@property (retain) NSString *title;
@property (retain) NSString *author;
@end
@TheNiks
TheNiks / UILabelStrikethrough.h
Created May 17, 2012 04:36 — forked from mikaelbartlett/UILabelStrikethrough.h
Simple class for IOS SDK UILabel with strikethrough
@interface UILabelStrikethrough : UILabel {
int xOffset;
int yOffset;
int widthOffset;
int stroke;
UIColor* strokeColor;
}
@property (nonatomic) int xOffset;
@property (nonatomic) int yOffset;
@property (nonatomic) int widthOffset;