Excluding Documents From UITableView
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
精彩评论