hi all,
trying figure out how extension html file. i'm new coding , xcode , trying create app have enough experience in coding understand goes , why.
problem i'm facing need add extension html file; example (index.html?lc=uk) instead of (index.html).
i've created interface , other information required can't seem part work. coding i'm using on viewcontroller.m is;
code:
[super viewdidload]; nsstring *path = [[nsbundle mainbundle] pathforresource:@"index" oftype:@"html" indirectory:@"354"]; nsurl *url = [nsurl fileurlwithpath:path]; nsurlrequest *request = [nsurlrequest requestwithurl:url]; [webview loadrequest:request];
i've tried adding (pathforresource) @"index.html?lc=uk" when test app doesn't work , gives me error.
can give me idea on need do?
kind regards,
seb
hi seb,
i'm not 100% sure you're trying do. assume file index.html exists in directory you're looking in. trying rename file, or want nsstring filename , query string appended?
r.
Forums Special Interests Web Design and Development
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment