我使用hpple將網頁內容解析到表視圖上,並遇到一些問題。即時試圖顯示存儲在一個NSArray到的tableview顯示數據時UITableView崩潰
0
A
回答
0
elements
是TFHppleElement
對象的數組,你需要傳遞一個NSString
到UILabel
的text
財產。如果你想顯示innerHTML內容,你可以這樣做:
cell.textLabel.text = [[elements objectAtIndex:indexPath.row] content];
0
它看起來像您的數據沒有文本類型設置爲所述textlable
cell.textLabel.text = [元件objectAtIndex所解析的數據:indexPath。行];
元素---根據我的理解,你存儲了一些非字符串對象。
相關問題
- 1. UITableView顯示數據,然後崩潰
- 2. UITableView重載數據崩潰
- 3. UITableView在滾動時崩潰
- 4. UITableView在滾動時崩潰
- 5. 滾動uitableview時崩潰
- 6. UITableView在滾動時崩潰
- 7. UITableView在滾動時崩潰
- 8. 滾動時在UITableView崩潰
- 9. 當滾動UITableView顯示底部行時,應用程序崩潰
- 10. UITableView的崩潰
- 11. iOS - UITableView崩潰
- 12. UITableView崩潰
- 13. 與UITableView崩潰
- 14. UITableView崩潰
- 15. 當行數大於1時,UITableView崩潰
- 16. PhoneNumberChooserTask顯示崩潰
- 17. UITableView窗體崩潰
- 18. UITableview reloadRowsAtIndexPaths和崩潰
- 19. UITableView的崩潰[reloadData]
- 20. UITableView滾動崩潰
- 21. 崩潰中的UITableView
- 22. UITableView刷新崩潰
- 23. UITableView與reloadRowsAtIndexPaths崩潰
- 24. UITableView行高崩潰
- 25. 的UITableView Moverows崩潰
- 26. 滾動UITableView崩潰
- 27. 顯示Firebase數據庫條目時Android應用程序崩潰
- 28. SQLite應用程序崩潰時顯示數據
- 29. 當使用來自AFnetworking的JSON解析數據時,UITableView崩潰
- 30. snprintf在顯示%d或%u時崩潰