开发者

UITableView crashes when displaying data

开发者 https://www.devze.com 2023-03-29 09:05 出处:网络
i\'m using hpple to parse a webpage content on开发者_运维技巧to a table view and i\'m having some issues. Im trying to display the parsed data which is stored in an NSArray onto the tableviewelements

i'm using hpple to parse a webpage content on开发者_运维技巧to a table view and i'm having some issues. Im trying to display the parsed data which is stored in an NSArray onto the tableview


elements is an array of TFHppleElement objects and you need to pass a NSString to UILabel's text property. If you want to display the innerHTML content you can do this:

cell.textLabel.text = [[elements objectAtIndex:indexPath.row] content];


It looks like you are setting no text type of data to the textlable

cell.textLabel.text = [elements objectAtIndex:indexPath.row];

elements --- as per my understanding you are store some non string objects.

0

精彩评论

暂无评论...
验证码 换一张
取 消