How to show HTML file in Xcode when there are two files of same file name? -


i have 2 files saved in 2 separate folders "manmohan" , "sahib". both have same file name "1" different text inside. want make sure when button "manmohan" clicked shows "1" file "manmohan" folder , when button "sahib" clicked shows "sahib" folder. below code, not sure how set path. can't change file name there on 1000 files have same name different text inside (this take long). sure there easier way out of this.

number.text = [nsstring stringwithformat:@"1"];  page.text = [nsstring stringwithformat:@"ang 1"];  nsstring *pages = [nsstring stringwithformat:@"1"];  nsstring *urladdress = [[nsbundle mainbundle] pathforresource:pages oftype:@"html"];  nsurl *url = [nsurl fileurlwithpath:urladdress];  nsurlrequest *requestobj = [nsurlrequest requestwithurl:url];  [webview loadrequest:requestobj]; 


Comments