Can I provide nil for the -dequeueReusableCellWithIdentifier: method?
Posted
by mystify
on Stack Overflow
See other posts from Stack Overflow
or by mystify
Published on 2010-04-10T11:38:55Z
Indexed on
2010/04/10
11:43 UTC
Read the original article
Hit count: 536
iphone
|uitableview
dequeueReusableCellWithIdentifier: Returns a reusable table-view cell object located by its identifier.
- (UITableViewCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier
Parameters identifier A string identifying the cell object to be reused. By default, a reusable cell's identifier is its class name, but you can change it to any arbitrary value.
Ok so if by default it's the class name, why should I put much brain force into thinking about an identifier? Could I provide just nil? Would it then use the class name? Or what did they try to say here? Must I make an NSString with the class name by myself and provide it as identifier?
© Stack Overflow or respective owner