#import "FYZAddressBookListController.h"
#import "FYZAddressBookDetailController.h"
#import "FYZAddAddressPersonController.h"
#import "FYZAddressBookNavigationController.h"
#import "AddressBookCell.h"
@interface FYZAddressBookListController ()<AddressBookCellDelegate>
@property (nonatomic, retain) UIWebView *callWebview;//拨打电话界面
@end
@implementation FYZAddressBookListController
//视图将要出现时触发,此时让tableView重新读一遍数据
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
//让tableView重新刷新数据
[self.tableView reloadData];
}
//重写callWebview getter方法
- (UIWebView *)callWebview
{
if (!_callWebview) {
self.callWebview = [[[UIWebView alloc] init] autorelease];
//记得添加到view上
[self.view addSubview:_callWebview];
}
return [[_callWebview retain] autorelease];
}
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
self.tableView.sectionIndexColor = [UIColor lightGreenColor];
// 配置navigationBar
[self customizeNavigationBarContent];
}
//定制navigationBar
- (void)customizeNavigationBarContent
{
//titleView
UILabel *titleLabel = [[UILabel alloc] ini
通讯录列表界面
最新推荐文章于 2022-06-15 15:47:21 发布