Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to set the html +css add in the iphone
    primarykey
    data
    text
    <p>how to set the html +css add in the iphone </p> <pre><code> webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0,320,458)]; webView.delegate=self; [self.view addSubview:webView]; // HTML files are stored in the main bundle NSBundle *bundle = [NSBundle mainBundle]; NSString *path = [bundle bundlePath]; NSString *filename = @"index"; NSString *fullPath = [NSBundle pathForResource:filename ofType:@"html" inDirectory:path]; [fullPath stringByReplacingOccurrencesOfString:@"/" withString:@"_"]; // load a HTML from a file // NSString *chapter_filename = [NSString stringWithFormat:@"Section%@", filename]; // NSString *sectionHTMLPath = [[NSBundle mainBundle] pathForResource:fullPath ofType:@"html"]; NSString* htmlContent = [NSString stringWithContentsOfFile:fullPath encoding:NSUTF8StringEncoding error:nil]; // add a generic template and the css file directive NSString* htmlString = @"&lt;!doctype html xmlns:fb=@\"http://ogp.me/ns/fb#\"&gt;&lt;head&gt;&lt;meta charset=\"utf-8\"&gt;&lt;meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\"&gt;&lt;title&gt;Ways Group&lt;/title&gt;&lt;meta name=\"description\" content=\"An very basic example of how to use the Wookmark jQuery plug-in.\"&gt;&lt;meta name=\"author\" content=\"Christoph Ono\"&gt;&lt;meta name=\"viewport\" content=\"width=device-width,initial-scale=1\"&gt;&lt;link href=\"landing-page/css/jquerysctipttop.css\" rel=\"stylesheet\" type=\"text/css\"&gt;&lt;!-- Link to the built CSS --&gt;&lt;link rel=\"stylesheet\" href=\"landing-page/css/modal.css\"&gt;&lt;link rel=\"stylesheet\" href=\"css/main.css\"&gt;&lt;link rel=\"stylesheet\" href=\"css/style.css\"&gt;&lt;link rel=\"stylesheet\" href=\"css/menu.css\" type=\"text/css\" media=\"screen\" /&gt;&lt;!-- CSS Reset --&gt;&lt;link rel=\"stylesheet\" href=\"css/reset.css\"&gt;&lt;link href=\"css/social-likes.css\" rel=\"stylesheet\"&gt;&lt;script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js\"&gt;&lt;/script&gt;&lt;script src=\"js/social-likes.js\"&gt;&lt;/script&gt;&lt;!-- Styling for your grid blocks --&gt;&lt;style type=\"text/css\"&gt;max-height: 300px;&lt;/style&gt;&lt;/head&gt;&lt;body&gt;%@&lt;/body&gt;&lt;/html&gt;"; // load the html into a web view NSURL *url = [NSURL fileURLWithPath:htmlContent]; [webView loadHTMLString:[NSString stringWithFormat:htmlString, htmlContent] baseURL:url]; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload