Note that there are some explanatory texts on larger screens.

plurals
  1. POiPhone - file properties
    primarykey
    data
    text
    <p>i m creating an application which makes the iphone work as a pendrive for easy file sharing purpose.</p> <p>In the first stage, i have some files(png, pdf, jpg, zip) in a directory and i made them display in the tableview in the form of mutable array. It displays in the tableView as shown below,</p> <pre><code>.DS_Store .localized gazelle.pdf Hamburger_sandwich.jpg IITD TAJ Picture 028_jpg.jpg iya_logo_final_b&amp;w.jpg manifesto09-eng.pdf RSSReader.sql SimpleURLConnections.zip SQLTutorial </code></pre> <p>I just want to display the name of the files and i do not want to display the extensions. I know that it is possible to extract the extensions of a file in NSFileManager. But i do not know how. Please help me to make my table view look like this</p> <pre><code>.DS_Store .localized gazelle Hamburger_sandwich IITD TAJ Picture 028_jpg iya_logo_final_b&amp;w manifesto09-eng RSSReader SimpleURLConnections SQLTutorial </code></pre> <p>In the second stage i have a detailedViewController which takes displays the detailed view of the file like</p> <ol> <li>file size</li> <li>file type</li> <li>if it is a image, it should open in imageView</li> <li>if it is a song, it should play it</li> </ol> <p>So i need to retrive the properties like filePath, fileType, fileSize.. of each files. Please guide me with a tutorial if possible. I too do not have any idea how to convert a mutableArray to a NSString and call the methods like stringByDeletingPathExtension. Please help me. I can even send my source code if needed. If possible, guide me with some example codes and tutorial.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload