i have several ppt slides included app working on. tableview list of ppt files, running issue. nsarray stays empty. here have in viewdidload
code:
nsarray *paths = nssearchpathfordirectoriesindomains(nsuserdirectory, nsuserdomainmask, yes); nsstring *documentsdirectorypath = [paths objectatindex:0]; nsfilemanager *manager = [nsfilemanager defaultmanager]; self.title = @"songs"; self.files = [[[manager contentsofdirectoryatpath:documentsdirectorypath error:nil] pathsmatchingextensions:[nsarray arraywithobjects:@"ppt", nil]] retain]; self.navigationitem.rightbarbuttonitem = self.editbuttonitem; [self.tableview reloaddata]; [super viewdidload]; [super viewwillappear:animated];
if, nsuserdirectory not files stored developer adds in, is?
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment