I am developing a app in which i downloaded datas of various format such as (.pdf,.txt,.mp3 etc) i have used the code
NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory,recFilName];
[nsdataFromBase64String writeToFile:filePath atomically:YES];
I successfully downloaded by using the above code, Now i have to open the downloaded files with the appropriate app that supports that extension can any one help me with the code.