ããªãã¯ãããã¯ãã¿ã³ããã¼ã®ä»£ããã«ãã¦Flashã²ã¼ã ã楽ããããã¦ã´ã¦ã´ã¶ãããã2012å¹´02æ06æ¥21æ23å å ¬éã«ãã´ãªã¼: ã¨ã³ã¿ã¼ãã¤ã³ã¡ã³ããã¼ã¯ã¼ã: ã¢ããª, ãããã¹ Short URL ãã¤ã¼ã ãããä¸ã«ã¯ããã©ã¦ã¶ã§æ軽ã«æ¥½ãããFlashã²ã¼ã ãå¤æ°å ¬éããã¦ãããAndroidã§ããFlash Playerãã¤ã³ã¹ãã¼ã«ãã¦å¯¾å¿ãã©ã¦ã¶ã§ã¢ã¯ã»ã¹ããã°Flashã³ã³ãã³ãã表示ã§ããããã¿ããã¹ã¯ãªã¼ã³æä½ãåæã®ã¹ãã¼ããã©ã³ã§ã¯ããã¼ãã¼ãã«ããæä½ãå¿ è¦ãªã²ã¼ã ã¯ãã¬ã¤ã§ããªãã ãã¼æä½ã®å¿ è¦ãªFlashã²ã¼ã ããã¬ã¤ããããã°ããã¦ã´ã¦ã´ã¶ããããã使ã£ã¦ã¿ãããç¢å°ã¢ã¼ããæå¹ã«ããã¨ããªãã¯æä½ã§ç¢å°ãã¼ã®åä½ãåç¾åºæ¥ãä»ãããã¯ãã¿ã³ãªã©ã«ä»»æã®ãã¼ãå²ãå½ã¦ãããããã¢ã¯ã·ã§ã³ã²ã¼ã ã®ããã«ç´ æ©ãæä½ã®å¿ è¦ãªã²ã¼ã ã¯é£ããããããºã«
iOS/iPhone/iPad/MacOSX ããã°ã©ãã³ã°, Objective-C, Cocoaãªã© UIWebView ã¯æå®ããããªã¯ã¨ã¹ãã«å¾ãã³ã³ãã³ãããã¦ã³ãã¼ãããããã®æã«ãã£ãã·ã¥ãã¡ã¢ãªã«ä¿åããã ãã£ãã·ã¥ã®å¶å¾¡ã«ã¯ UIWebViewã«æ¸¡ã NSURLRequest ã§è¡ãã (ä¾) NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:60.0];ãã£ãã·ã¥ããªã·ã¼ã¯æ¬¡ã®ç¨®é¡ããããNSURLRequst.h ãã転è¼ã enum { NSURLRequestUseProtocolCachePolicy = 0, NSURLRequestReloadIgnoringLoca
AndroidãiPhoneã®HTML,CSS,JavaScriptã®ãã°ã¾ã¨ã AndroidãiPhoneãªã©ã®ã¹ãã¼ããã©ã³ã§ã¯HTML,CSS,JavaScriptã«ãã°ãå¤ãã¦ã³ã¼ãã£ã³ã°ã大å¤ã«ãªãã¾ããããã§ãã°ãç´¹ä»ãã¦ãããµã¤ããè¨äºãã¾ã¨ãã¦ã¿ã¾ããã(ä¸ã«ã¯ãã°ã§ã¯ãªãä»æ§ãªãã®ãããããããã¾ãã) iOS 8.4.1ã®:hoveråé¡ iOS 8.4.1ã§:hoverãæå®ãã¦ããã¨1ã¿ããã§ãã¼ã¸é·ç§»ã§ããªãåé¡ ãSTINGER5ãAndroidã®Chromeã§ï¼nbsp;ããã»ãã«ãªã£ã¦ãæ°ããã | ãããã ã ã«å¤æ´ããã¨ç´ãã¨ã®ãã¨ã Mobile Safari 8ã§position: fixedããæ¬ä¼¼è¦ç´ ãå®å ¨ã«ä½ç½®ãåºå®ãããªã - Weblog - Hail2u.net Mobile Safari 8ã§position:
ãããã¯ã¼ã¯è¶ãã«Webãµã¤ãã表示ããã¨ãªã£ãå ´åã表示ã®é«éåã«ã¯ãã£ãã·ã¥æ¦ç¥ã¯å¤ããã¨ãã§ãã¾ããã ã¨ãã£ã¦ãWebViewã®å ´åãè£å´ã«ããWebKitããã£ãã·ã¥å¦çãè¡ã£ã¦ãããã®ã§ããã»ã©ç¬èªã§å®è£ ããäºã¯ç¡ãããããã¾ããã â¯WebViewã®ãã£ã...
å æ¥å ¬éãããRSSReaderã§ã¯ãè¨äºã表示ããã®ã«ãããã¹ãã®ã¿è¡¨ç¤ºã®TextViewã¨ããªã³ã¯ããã¦ããç»åã表示ã§ãããWebViewã®ï¼ç¨®é¡ãç¨æãè¨å®ã§åãæ¿ãå¯è½ã«ãã¦ããã WebViewã®ä½¿ç¨ã¯ãä½ãæã¨ãã¦ã¯ãé常ã«ä¾¿å©ã§ã¯ãããããã¡ãã¡ãããã¯ã¼ã¯ã¢ã¯ã»ã¹ã«ãããããé度ãé ãäºãç¡ç¨ãªãã±ãããçºçããã®ã§ï¼ç¨®é¡ç¨æãããã è¨äºãããªã³ã¯ããã¦ããç»åã¯ãWebViewã«ããèªåçã«åå¾ãããããããã¼ã«ã«ãã¼ã¿ãã¼ã¹ã«ã¯æ ¼ç´ãã¦ããããããã¹ãã®ã¿ãä¿åãã¦ããããã®ããã¢ããªã±ã¼ã·ã§ã³ãæã¤ãã¼ã¿ãµã¤ãºã¯ããããªã«å¤§ãããªããªãã¯ãã ããHome -> Setting ããã¢ããªã±ã¼ã·ã§ã³æ å ±ãè¦ãã¨ï¼ï¼ã«ããªã£ã¦ãããçç±ã¯WebViewãæã¤ãã£ãã·ã¥ããã®ãã£ãã·ã¥ã¯ããã©ã¦ã¶ã¢ããªã±ã¼ã·ã§ã³ã¨ã¯å ±æããããåã¢ããªã±ã¼ã·ã§ã³ã®ãã£ã¬ã¯ããªã«ä½æãã
iOS 4 ã«ãªã£ã¦å é度ãJavaScriptã®ã¿ã§åå¾ã§ããããã«ãªã£ãã®ã§ãã®æ¹æ³ãç´¹ä»ãã¾ã. DEMO AND DATA å¤ãåå¾ãããµã³ãã«ã¯ãã¡ã ãã¼ã¿ã¯ãã¡ããããã¦ã³ãã¼ãã§ãã¾ã CODE iOS 4 ãã JavaScript ã®ã¤ãã³ãã« âdevicemotionâ ã¨ãã å é度å¤æ´æã«å¼ã°ããã¤ãã³ãã追å ããã¦ãã¾ã. ãã®ã¤ãã³ãã«å é度ã使ã£ãå¦çãããé¢æ°ãç»é²ããã ãã§ç°¡åã«å é度ãæ±ããããã«ãªãã¾ã. âdevicemotionâã¤ãã³ãã«é¢æ°ãç»é²ããã³ã¼ã var $id = function(id) { return document.getElementById(id); } window.addEventListener('devicemotion', function(e){ // éåå é度(3軸) var gravity = e
WebViewJavascriptBridgeã¯WebViewã®JavaScriptå´ããObjective-Cã®ã¡ã½ãããå¼ã³åºãã¢ãã¯ã¢ããªã§ãã iOSã¢ããªã§ç»é¢ã«æè»æ§ãæãããããã«WebViewã§ãµã¼ããµã¤ããèªã¿è¾¼ã¾ãããããã®ã¯ãããããã¨ã§ãããããããããã¨è¡¨ç¾åãä¹ãããªã£ã¦ãã¾ãã®ãæ¬ ç¹ã§ããããã§ä½¿ã£ã¦ã¿ããææ³ãWebViewJavascriptBridgeã§ããWebViewã®JavaScriptããObjective-Cã®ã¡ã½ãããå¼ã³åºããµã³ãã«ã§ãã iPhoneå´ã®è¡¨ç¤ºã§ãããã¿ã³ãæ¼ãã¾ãã Xcodeã®ã³ã³ã½ã¼ã«ã§ããJavaScriptããã¡ãã»ã¼ã¸ãåãåã£ãã¨ããã¾ãã ãã¡ããObjective-Cå´ã®ã³ã¼ãã§ããã¡ãã»ã¼ã¸ãåãåã£ã¦åºåãã¦ããã ãã§ãã ãã¡ãã¯JavaScriptå´ã®ã³ã¼ãã§ããsendMessageã§ã¡ãã»ã¼ã¸ã
iPhoneãAndroid風ã«ãã¦ã¹ã§ããªãã¯ã¹ã¯ãã¼ã«ã§ããããã«ããjQueryãã©ã°ã¤ã³ã¤ããã¾ããã ãã¼ã¸æ«ç«¯ãéããã¨æ»ããããªåä½ãåç¾ãã¦ãã¾ãããã¼ã¸åºåããè¨å®ããã¨iPhoneã®ãã¼ã ç»é¢ã®ãããªUIãå®ç¾ã§ãã¾ãã ç¾å¨ã¯ã¢ã«ãã¡çã¨ãã¦å ¬éä¸ã ã㢠ãã¢ï¼ãã¼ã¸å ¨ä½ï¼ ãã¦ã³ãã¼ã ã³ã¼ããµã³ãã« ãã¼ã¸ä¸é¨ãããªãã¯ã§ããããã«ããå ´åã $('.selector').flickable(); ãã¼ã¸å ¨ä½ãããªãã¯ã§ããããã«ããå ´åã $(window).flickable(); ãã¼ã¸åºåããä½ãå ´åãsectionãªãã·ã§ã³ã§ã»ã¬ã¯ã¿ãè¦ç´ ãæå®ãã¾ãã $('.selector').flickable({ section: '.content' }); ãªãã·ã§ã³ã®åãæ¹ãªã©ãå«ããjQuery UIã¨åããããªå®è£ ã«ãã¦ãã¾ãã 詳ããã¯ãhttp
ADC Home > Reference Library > Guides > Apple Applications > Safari > Web Kit DOM Programming Topics > Web Kitã®Webã¹ã¯ãªããã£ã³ã°æ©è½ã使ã£ã¦ãJavaScriptã¹ã¯ãªããã£ã³ã°ç°å¢ããObjective-Cã®ããããã£ã«ã¢ã¯ã»ã¹ãããObjective-Cã®ã¡ã½ãããå¼ã³åºãããã§ãã¾ãã1ã¤ãéè¦ã§ãããªããå¿ ãããæç½ã§ã¯ãªãäºå®ãããã¾ããããã¯ããã®ããªãã¸ããããªãJavaScriptã¹ã¯ãªããããObjective-Cã«ã¢ã¯ã»ã¹ãããã¨ã許å¯ãã¦ããªãã¨ãããã¨ã§ããã«ã¹ã¿ã ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã¦ããªãéããObjective-Cã®ããããã£ã¨ã¡ã½ããã«ãWebãã©ã¦ã¶ããã¢ã¯ã»ã¹ãããã¨ã¯ã§ãã¾ãããããªãã¸ã¯ãã«ã¹ã¿ã ãã©ã°ã¤ã³ã¨Web Kitãªãã¸
UIWebViewã«è¡¨ç¤ºãã¦ããHTMLã«å¯¾ãã¦ãObjective-CããJavaScriptãæãããã¨ãã§ãããããæ¹ã¯ç°¡åã§ä»¥ä¸ã®ã¨ãã NSString *command =[NSString stringWithFormat:@"sample()"]; [webview stringByEvaluatingJavaScriptFromString:command]; NSStringã«ã³ãã³ããå ¥ãã¦ããã®UIWebViewã«å¯¾ãã¦æããã ãã ãã ãã¡ãã»ã¼ã¸ã®åãåãã¯ã§ããªãã¿ããã 注æç¹æ¸ãã¾ãã
ååä½æãããµã³ãã«ã«ãããã¢ããã¡ãã¥ã¼ã追å ãã¦ã¿ããèªç±å ¥åã ãã§ãªããããããç¨æããããã¹ã¿ãã¼ã¿ãé¸æããã±ã¼ã¹ã¨ãªãã ã¢ãã«ã¯ã©ã¹ã¨ã㦠Person ã¨Prefecture ã®ï¼ã¤ããããPersonã¯Prefectureã¸ã®åç §ãæã¤ã ï¼ï¼¶ï¼£ã®é¢ä¿ãå³ã«è¡¨ãã¨æ¬¡ã®ããã«ãªãã PREFECTUREã®åã«ããã NSTableColumn 㯠NSPopUpButtonCellãå«ãã§ãããNSTableColumnã®ãã¤ã³ãã£ã³ã°ã«ã¯ï¼ã¤ã®ç¨®é¡ããããä¸ã¤ã¯ãã«ãã¦ã³ã®è¡¨ç¤ºå 容ã決ããçºã®ãã®ã§ãå³ã®å³å´ã® NSArrayControllerã¸æ¥ç¶ããã¦ããç·ãããã表ãããcontentãã®è¨å®ã§æ§æãã Prefecureãªãã¸ã§ã¯ãã®é åãçµã³ã¤ãããcontentValuesãã§è¡¨ç¤ºè¨å®ãè¡ã£ã¦ããï¼ããã§ã¯ Prefectureã¯ã©ã¹ã® nameå±æ§ãæå®ï¼
WebViewã§ã®æä½ããã³ããªã³ã°ããæ¹æ³ã¯ããã¤ãããã¾ãããç»é¢ã®ãã¼ãããã³ããªã³ã°ããã«ã¯ WebViewClient#shouldOverrideUrlLoading ã使ãã¾ãã ä¸è¨ã¯WebViewå ã®ãªã³ã¯ãã¯ãªãã¯ããå ´åãªã©ãç»é¢ã®ãã¼ããå§ã¾ã£ãæã«Toastã表示ãã¾ãã WebView webView = (WebView) findViewById(R.id.web); webView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String urlStr) { // ç¹å®ã®URLã®å ´åããã¤ã¢ãã°ã表示ããç Toast toast = Toast.makeText(WebViewActivity.this, "ãã³ã
loadUrl() ãå©ç¨ãã¾ãã 使ç¨ä¾ ============== /* 表示ããWebãã¼ã¸ */ webview.loadUrl("http://www.google.co.jp/"); getUrl() ã¾ã㯠getOriginalUrl()ã使ç¨ãã¾ãã 使ç¨ä¾ ============== /* URLãåå¾ãã */ String url= webview.getUrl(); * ã¢ã©ã¼ããã¤ã¢ãã°ã«åå¾ããURLã表示ãã */ AlertDialog.Builder ad; ad.setTitle("Get URL"); ad.setMessage(url); ad.setPositiveButton("OK",new DialogInterface.OnClickListener() { public void onClick(DialogInterface di
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}