VerticalAlignment.h文件
#import <UIKit/UIKit.h>
typedef enum VerticalAlignment {
} VerticalAlignment;
@interface VerticallyAlignedLabel : UILabel
{
@private VerticalAlignment verticalAlignment_;
}
@property (nonatomic, assign) VerticalAlignment verticalAlignment;
@end
VerticalAlignment.m文件
#import "VerticallyAlignedLabel.h"
@implementation VerticallyAlignedLabel
@synthesize verticalAlignment = verticalAlignment_;
- (id)initWithFrame:(CGRect)frame
{
}
- (void)setVerticalAlignment:(VerticalAlignment)verticalAlignment {
}
- (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines {
}
-(void)drawTextInRect:(CGRect)requestedRect {
}
@end