首页 > 移动平台 > 详细

ios-tableviewcell初始化为什么要用static NSString *str = @"mycell"中得static

时间:2015-07-16 00:29:29      阅读:492      评论:0      收藏:0      [点我收藏+]

很多人在

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

{

//不用static关键字修饰    

NSString *identifile = @"myfrindecell";

    WWMyFriendCell *cell = [tableView dequeueReusableCellWithIdentifier:identifile];

    if (cell == nil)

    {

        cell = [[WWMyFriendCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifile];

    }

    return cell;

}

ios-tableviewcell初始化为什么要用static NSString *str = @"mycell"中得static

原文:http://www.cnblogs.com/rankilau/p/4649874.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!