开发者

Excluding Documents From UITableView

开发者 https://www.devze.com 2023-04-07 01:54 出处:网络
Somehow on the simulator, it has gotten the data from a file that doesn\'t exist, yet persists in the simulator\'s memory.Because apps are sandboxed, it must be from an early method that I neglected t

Somehow on the simulator, it has gotten the data from a file that doesn't exist, yet persists in the simulator's memory. Because apps are sandboxed, it must be from an early method that I neglected to delete, but searching through开发者_JAVA百科 my app's methods, none of them CREATE files, just view them.

My question is this: can data be excluded from a UITableView that is displaying content from the app's

\documents    

folder? I only want to display files that end in .pdf.


Iterate through each file and look for the suffix .pdf. See NSString hasSuffix

0

精彩评论

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

关注公众号