how to read pdf file from url in ios
<p>i have pdf file name now i want to open that pdf file from my ipad device with compatable application...</p>

<pre><code>NSString *fileurl=[FILE_URL_Array objectAtIndex:indexPath.row];
NSArray *parts = [fileurl componentsSeparatedByString:@"/"];
NSString *filename = [parts lastObject];

NSString *extn =[filename pathExtension];

NSLog(@"file extn is %@",extn);

NSURL  *url = [NSURL URLWithString:fileurl];

NSLog(@"not existing url is %@",url);
NSData *urlData = [NSData dataWithContentsOfURL:url];
</code></pre>

<p>now i want to open this file in my ipad device..when i click on it..can any one have idea?...Thanks in advance </p>