GPSã«ããä½ç½®æ å ±ãå é度ã»ã³ãµã¼ã®å¤ãiPhoneã¨ãµã¼ãã¼éã§ããåãããããã«ããã¼ã¿éä¿¡ã«ã¤ãã¦å®é¨ããã NSURLConnectionã¯ã©ã¹ Cocoaã§ãã¼ã¿éä¿¡ãè¡ãå ´åã«ã¯NSURLConnectionã¯ã©ã¹ã使ããNSURLConnectionã¯ã©ã¹ã使ãã¨ãåæï¼éåæã§HTTPéä¿¡ãè¡ããã¨ãã§ãããæå®ããURLã®å 容ãèªã¿è¾¼ãæ©è½ãå®è£ ããã¦ãããããã使ã£ã¦ãã¼ã¿ã®éåä¿¡ãè¡ãã URLã®èªã¿è¾¼ã¿ æå§ãã«Googleã®ããããã¼ã¸(http://www.google.com/)ã®å 容ãèªã¿è¾¼ããã¹ãããã¦ã¿ãã èªã¿è¾¼ãæã«ä»ã®å¦çãåæ¢ãã¦ãã¾ãã¨ä¸ä¾¿ãªã®ã§ãéåæã§èªã¿è¾¼ãããã«å®è£ ããããã®å ´åã®å¦çã®æµãã¯ä¸è¨ã®ç¨ã«ãªãã ã©ã®URLãèªã¿è¾¼ã¿ã«è¡ãããã¨ãããªã¯ã¨ã¹ããä½æãã ãªã¯ã¨ã¹ããå ã«HTTPéä¿¡ãéå§ããã éä¿¡ã«æåï¼å¤±æããã¨ãæ
NSURLConnectionã使ã£ã¦URLãããã¼ã¿ãéåæçã«åå¾ããæ¹æ³ã§ãã éä¿¡ã«ããå¦çã«ãã£ã¦ã¢ããªã±ã¼ã·ã§ã³å ¨ä½ããããã¯ãããªãã¢ããªã±ã¼ã·ã§ã³ãæ¸ããããããã°ã¬ã¹ãã¼ãä½ãã«ã¯éåæçãªææ³ã使ãã®ãä¸è¬çã§ãã ãµã³ãã«ã³ã¼ã URLãæå®ããéåæçãªãã¼ã¿åå¾ãµã³ãã«ã以ä¸ã«ç¤ºãã¾ãã 以ä¸ã®ã³ã¼ãã®ç¹å¾´ã¯ãdelegateãããããã®ãªãã¸ã§ã¯ããçæãã¦ããç¹ã§ãã 以ä¸ã®ãµã³ãã«ã³ã¼ãã¯ãåã«åä½ã®æ¦è¦ã示ãããã®ã¹ã±ã«ãã³ã³ã¼ãã§ããããåã¡ã½ããã§NSLogãåºåãã¦ããã ãã§ãã ãã®ããããã¼ã¿ãå®éã«åå¾ãã¦ãã¾ããã æå ã§å®è¡ãã¦ãã¡ã½ãããå¼ã³åºããã¦ããæ§åãè¦ã¦é ããã°å¹¸ãã§ãã #import // éä¿¡ã®é²æå ·åã«å¿ãã¦å¼ã³åºããã @interface myUrlConnDelegate : NSObject - (void)co
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}