-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathSCFooterLabel.h
38 lines (32 loc) · 935 Bytes
/
SCFooterLabel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// SCFooterLabel.h
// TouchCustoms
//
// Created by Aleks Nesterow on 3/12/10.
// aleks.nesterow@gmail.com
//
// Copyright © 2010 Screen Customs s.r.o.
// All rights reserved.
//
// Purpose
// UILabel that is intended to be inserted as a UITableView footer.
// Tweaked to has the same shadow, font color and style.
//
#import <UIKit/UIKit.h>
@interface SCFooterLabel : UILabel {
}
/**
* You can still instantiate the label with other init* methods.
* This method is optional, but you're encouraged to you use it.
*
* Note, that in case you're going with another init method,
* you will need to set label's width to the width of the parent
* UITableView manually (usually 320 px), otherwise, heightForCurrentText
* method will return wrong value.
*/
- (id)initWithText:(NSString *)footerText;
/**
* Call this in tableView:heightForFooterInSection: method.
*/
- (CGFloat)heightForCurrentText;
@end