tbxml

UITableView reloadData taking too much time

佐手、 提交于 2019-12-04 15:23:26
I'm using TBXML+HTTP to get XML data from a website. What I want to do is populate a UITableView with the processed data. I've created a NSMutableArray that holds all the entries and, as far as that goes, everything is working fine. The problem is when, after successfully fetching the data from the server and storing it in the array, I try to update the table to show the data, using reloadData . It takes about 5 seconds to populate the table with 20 rows. The weird part is that the fetching is happening really fast, so the data is available right away. I do not understand what is taking so

How to Decode HTML Entities (“
” and “ £”) from string in xcode

六眼飞鱼酱① 提交于 2019-12-02 14:10:19
问题 in xml data is <content_special> SAT 17TH TEST test club cheap drinks £3 shots £5 bottles $beers </content_special> i get this string using this code TBXMLElement *Content_Special=[TBXML childElementNamed:@"content_special" parentElement:Club]; NSString *Content_SpecialStr = [TBXML textForElement:Content_Special]; when i NSLog(@"Content_special:%@",Content_SpecialStr); that print like this Content_special:SAT 17TH TEST test club cheap drinks £3 shots £5 bottles $beers how can i get