我的UITableViewHeaderFooterView课程用法有问题.在我的应用程序中,我想使用textLabel和detailTextLabel属性来显示一些文本,但detailTextLabel不显示.据我所知,Apple的文档textLabel和detailTextLabel属性应该类似于众所周知的类textLabel和detailTextLabel属性UITableViewCell.这是我的示例类代码:
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
@property (strong, nonatomic) IBOutlet UITableView *tblMain;
@end
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
@synthesize tblMain;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
tblMain.delegate = self;
tblMain.dataSource = self;
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that …Run Code Online (Sandbox Code Playgroud)