Objective-C
ã製ä½å®ç¸¾ããªã³ã©ã¤ã³ãµãã³ãã·ããã¹ãã®iOSã¢ããªãæ å½ãã¾ããã
ãªã¼ãã³ãã¼ã¿ãæ´»ç¨ãã¦ç¥æ¸å¸å ã®AEDè¨ç½®å ´æãé²è¦§ããã¢ããªãä½ãã¾ããã
ç´ä¸å¹´ååã«ããå½æ¥ã«ã¬ã³ãã¼ãã¨ããiOSã¢ããªããªãªã¼ã¹ãã¾ããã ponpoko1968.hatenablog.com ä»åãããapple watchã«å¯¾å¿ããã¾ãããã°ã©ã³ã¹ã§å人ã®èåç»ã表示ãããã¿ãããã¦ã¢ããªãèµ·åããã¨ãè·æ¥ã»è©æ¸ãä»ãã§è¡¨ç¤ºããã¾ãã å½æ¥ã«ã¬â¦
iOS8ã§å°å ¥ãããWKWebViewã§ãã¼ã¸é·ç§»ãå¶å¾¡ããæ¹æ³ã«ã¤ãã¦
è·å ´ã®æè¡çºè¡¨ä¼ã§iOSéçºé¢é£ã§çºè¡¨ããã¨ãããObjective-Cã§ã®éçºã«å¯¾ãã¦é«ããã¼ãã«ãæãã¦ãã人ãå¤ãããã ã£ãã®ã§ãå°ãã§ãiOSéçºã«èå³ãæã£ã¦ããããããFAQãæ¸ãã¦ã¿ã¾ããã Original Update by nickcastonguay Q. ä½ãå¿ è¦ï¼ Xcodeâ¦
iOSã¢ããªãä½ã£ã¦ãã¦ãå®è¡ä¸ã®ã¢ããªã®ãã¼ã¸ã§ã³ãç¥ããããã¨ãããã¾ããä»äººããã®ä¸å ·åå ±åãªãããèããå ´åã«ã¯ã¾ããã¼ã¸ã§ã³ãç¥ãããã¨æãã¾ãã ãããã£ãé½åãããããã®ã¢ããªã«ã¤ãã¦ãã®ãããªç»é¢ãç¨æãããã¨ãå¤ãã¨æãã¾ãâ¦
iPadç¨PDFãªã¼ãã¢ããªãããããããªã¼ãã¼ãããªãªã¼ã¹ãã¾ããã çè ã¯ä»¥åããããããããèªçãã§å¤ãITéèªãå°èª¬ã»æ°æ¸ãPDFåãã¦ãã¾ãããiPadããªãªã¼ã¹ãããã¨ããæ©éè³¼å ¥ãã¦ããã¾ã§ãç©ãèªããã¦ããæ¬ãèªããã¨ããã®ã§ãããä»ã²ã¨â¦
å½ããã°ã®ã¢ã¯ã»ã¹ã解æãã¦ããã¨ããUIWebViewå ã®ç»é¢é·ç§»ãããã¯ããããããé²è¦§ããã¦ããããã§ããä»åãUIWebViewé¢é£ã§å°ãæ¸ãã¦ã¿ã¾ããæºå¸¯Webãã¼ã¸ããµã¼ãå´ã®å¤æ´ãªãiPhone/iPadã§èªã¿ããã表示ãããã¨ãããã¨ã¯ãããããã¨æãã¾â¦
ç§ã¯ãiOS/Objective-Cã®ã³ã¼ãã£ã³ã°ã«ã¯å°ãEmacsã使ã£ã¦ãã¾ããä¸è¨ããã°ã®ãããã§ããªãå¿«é©ãªObjective-Cã®ã³ã¼ãã£ã³ã°ç°å¢ãæã«å ¥ãã¾ããã(1) Emacs 㧠iPhone ã¢ããªéçºãå¿«é©ã«ããããã®è¨å®ãã è¥å¹²æ°ã«ãªãã¨ããã¨ãã¦ãauto-complete-â¦
å æ¥è¦ãããã¢ããªã§ãUITableViewã®ãããé¨åãã¿ããããã¨ããã®ãããã«å±ããã»ã«ã伸ã³ç¸®ã¿ããã¨ããåä½ãããã¾ããã ã©ããã£ã¦ããã®ã調ã¹ã¦ã¿ã¦ãã©ãããä¸ã®åç»ã®ãããªåããå®è£ ã§ããã®ã§ãå ±æãã¾ãã https://dl.dropboxusercontenâ¦
ä»åã¯ãPDFææ¸ã®ç®æ¬¡æ å ±ãåå¾ããæ¹æ³ã«ã¤ãã¦è¨ãã¾ããã¢ã¦ãã©ã¤ã³ãã®ãã®ã¯PDFã«ã¿ãã°ã®ãOutlinesãããåå¾ã§ãã¾ãããã®ã¨ã³ããªã¯æ¨æ§é ã«ãªã£ã¦ããã®ã§ãæ·±ãåªå ã§ããFirstãé ç®ãã¹ãã£ã³ããæ¨ãã¹ãã£ã³ãçµãã£ãããNextãé ç®ãã¹â¦
ãã©ã³ãæ å ±ããæåã³ã¼ããå¾ãæ¹æ³ã§ããã¾ããFontæ å ±ã¯ãã®ãã©ã³ãã使ç¨ãããã¼ã¸ã®Resourceã¨ãã¦ç»é²ããã¦ããã®ã§ããã®æ å ±ãåãåºãã¾ãã CGPDFPageRef page; // page ãã¼ã¸ãªãã¸ã§ã¯ããåå¾ããã CGPDFDictionaryRef pageDict = CGPDâ¦
ååã®ç¶ãã§ããponpoko1968.hatenablog.com PDFã®æååæç»å½ä»¤ã¯ãTJãTjæ¼ç®åã®ãªãã©ã³ãæååã®ã¨ã³ã³ã¼ãã¨ãã£ã©ã¯ã¿ã»ããã¯ãå ã ã£ã¦å®è¡ãããTmãªãã¬ã¼ã¿ã®ãã©ã³ãã®æå®ã«å¾ã£ã¦ãã¾ãã ãã¨ãã°ã /C2_0 1 Tf 0 Tc 4.093 0 Td <0DFA0F6â¦
ååã®ã¨ã³ããªã§ãXCodeã®ãããã¬ä¸ã§OCUnitã®ãã¹ããå®è¡ãããã¨æ¸ããããUIã絡ã¾ãªããããªãã¸ãã¯ãã¹ãã§ããã°æãã®å¤ç°¡åã«å®ç¾ã§ããã®ã§å ±æãã¾ããæ°è¦ã¿ã¼ã²ããã¨ãã¦Cocoa Touchã¢ããªã±ã¼ã·ã§ã³ã追å ã ã¿ã¼ã²ãããå³ã¯ãªãã¯ãæ å ±â¦
å°ãã¿ã§ããããæ¬æ¥ã®ã¦ããããã¹ãã®è¶£æ¨ã¨ã¯ãã¨ãªãããåä½ãããããããªãã¯ã©ã¹ãAPIã試ãã¦ã¿ãã¨ããªã©ã試è¡é¯èª¤ããªããã³ã¼ããæ¸ãã¦ããã¨ãã«ããã¹ãããã°ã©ã ãæ¸ãã¦è©¦ãã¦ã¿ã¦ã¯ãæ¸ãæãã¦ã¾ãå¥ã®æ¹æ³ã試ãããã¨ãé¸æçã«ãã¹â¦
æå¤ã¨æ¥æ¬èªã®ã¨ã³ããªãå°ãªãã®ã§ã¡ã¢ãPDFãã¼ã¸ã®è¡¨ç¤ºãªã©ãã¬ã³ããªã³ã°ãã¦ç»åã¤ã¡ã¼ã¸ãçæããã®ã«é常ã«æéãããã£ã¦ã¦ã¼ã¶ããªãã£ãæããå ´åããããããããªã¬ã³ããªã³ã°ããç»åã¤ã¡ã¼ã¸ããã£ãã·ã¥ã¨ãã¦ç½®ãã¦ããããããããiOSãâ¦
ãã®æã®ã¢ããªä½ã£ã¦ãã人ã«ã¯æ¢ç¥ã®ãã¨ãªãã ãããã©ããã®ãããã§ã¢ã¸ã¢è¨èªåã§ä½ãããPDFããæ½åºããããã¹ããæååãããã¨ãã話é¡ããã£ã¦ãä¸è¨ã®æ¹æ³ã§ä¸å¿è§£æ±ºã§ããã½ãã®ã§ã¡ã¢ã "TJ"ã"Tj"ã®ãªãã¬ã¼ã¿ã³ã¼ã«ããã¯ããã static voiâ¦
常æãããæ¥ç¶ãåæã¨ããä»æ¥ã®ã¹ãã¼ããã©ã³ã§ããã¨ããã®iPhoneã§ã¯ããµã¼ãã¨éä¿¡ãããã¨ãåæã®ã¢ããªãä½ããã¨ãå¤ããå¤ãã®ï¼²ï¼³ï¼³ãªã¼ãã®ããã«ãã¢ããªã±ã¼ã·ã§ã³å é¨ã§éåæã«ãµã¼ãã¨éä¿¡ãã¦æ å ±ãåå¾ããiPhoneã®ãã¤ãã£ãã®ï¼µï¼©ãâ¦