initWithFrame : reuseIdentifier : is deprecated

后端 未结 4 1250
轻奢々
轻奢々 2020-12-14 06:45

In my project i\'ve got a Deprecations warning, initWithFrame : reuseIdentifier : is deprecated

I don\'t know what it mean, could some one tell me how to resolve thi

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-14 07:31

    Use this code:

    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
                                     reuseIdentifier:CellIdentifier] autorelease];
    

提交回复
热议问题