load web pages form Array for iphone
<p>i can load web view on button press like this</p>

<pre><code>-(void)buttonEvent:(UIButton*)sender{
        NSLog(@"new button clicked!!!");
    if (sender.tag == 1) {




        NSLog(@"1");
    }
    if (sender.tag == 2) {
        NSLog(@"2");

        NSString *path;
        NSBundle *thisBundle = [NSBundle mainBundle];


        path = [thisBundle pathForResource:@"index2" ofType:@"html"];




        NSURL   *instructionsURL = [[NSURL alloc] initFileURLWithPath:path];
        [webView loadRequest:[NSURLRequest requestWithURL:instructionsURL]];



    }
}
</code></pre>

<p>but i want to load the path value from my string   <code>NSString *filepat=[listItems objectAtIndex:2];</code>
whose value is <strong>tab0/index1.html</strong> where <strong>tab0 is a folder</strong> </p>

<p>so how to load from that string plz help</p>

<p>Thanks</p>
