error: can't allocate region


malloc: *** mmap(size=1431658496) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
*** Assertion failure in -[UISectionRowData refreshWithSection:tableView:tableViewRowData:], /SourceCache/UIKit_Sim/UIKit-1914.84/UITableViewRowData.m:377

主要問題為,在tableview的方法中
numberOfRowsInSection:此方法根據數組返回對應的行數。在此一行顯示多個自定義cell時候,需要判斷數組是否為0,在if中加入[Array count]!=0即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM