266 NSInteger height = 40; |
266 NSInteger height = 40; |
267 UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, aTableView.frame.size.width, height)]; |
267 UIView *footer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, aTableView.frame.size.width, height)]; |
268 footer.backgroundColor = [UIColor clearColor]; |
268 footer.backgroundColor = [UIColor clearColor]; |
269 footer.autoresizingMask = UIViewAutoresizingFlexibleWidth; |
269 footer.autoresizingMask = UIViewAutoresizingFlexibleWidth; |
270 |
270 |
271 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, aTableView.frame.size.width*80/100, height)]; |
271 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, aTableView.frame.size.width*90/100, height)]; |
272 label.center = CGPointMake(aTableView.frame.size.width/2, height/2); |
272 label.center = CGPointMake(aTableView.frame.size.width/2, height/2); |
273 label.textAlignment = UITextAlignmentCenter; |
273 label.textAlignment = UITextAlignmentCenter; |
274 label.font = [UIFont italicSystemFontOfSize:12]; |
274 label.font = [UIFont italicSystemFontOfSize:12]; |
275 label.textColor = [UIColor whiteColor]; |
275 label.textColor = [UIColor whiteColor]; |
276 label.numberOfLines = 2; |
276 label.numberOfLines = 2; |