2009-01-01ãã1å¹´éã®è¨äºä¸è¦§
ä»å㯠iPhone ã§ã¯ãªã話ãã ãã¹ã¯ã¼ãã¨ãå¥ç´æ å ±ã¨ãã®ææ¸ãã¡ã¤ã«ãå®å ¨ã«ä¿ç®¡ãã¦ããæ¹æ³ã«ã¤ãã¦ããããã¨èãã¦ããã ä½ã¬ãã«ã§ OK ãªãã ãã©ãã ãã¡ã¤ã«ã¬ã¼ãx5 ã使ãæ¹æ³ã Stuffit ã§æå·åå§ç¸®ãã¦ããæ¹æ³ã ããããææ製åãªã®â¦
iPhone 3G [S] ãçºè¡¨ã«ãªã£ãã Apple 㯠iPhone 3G S ã¨è¡¨è¨ãã¦ããã©ãæ¢ã㦠[S]ã¨æ¸ããã ãã®ã»ãããã£ããããªãããï¼ ãªã«ã¯ã¨ããããæ°æ©è½ã¯å±±ã»ã©ãããã©ã ãããªæ®å½±ã¨ç·¨é iPod touchã«ç¶ãNike+ã®å®è£ ãã¶ãPush Notificationã§å®ç¾ãâ¦
UIViewãå転ãããã«ã¯ãCGAffineTransformMakeRotationãsetTransform:ããã°ãããããã ä»åããããã£ãã®ã¯ãç©å½¢ã®å·¦ä¸ãåºç¹ã«å転ããããã¨ã UIViewã§ã¯anchorPointãè¨å®ã§ããªããã¨ãããã£ãã®ã§ãCALayerã使ã£ããanchorPointã¯ãå·¦ä¸ã(0.â¦
å¤å¿ããã¦æãåã£ã¦ãªãã3.0beta3ãåºãã¨ããã®ã«ãã¾ã æã¤ããã ã©ãã©ãç½®ãã¦ããã¦ãããªããã¾ã¯ãCALayer ã«å¤¢ä¸ã è¿ã ãTips ãå ¬éã§ããã°ãããªã¨æã£ã¦ããã©ãæå¾ ããªãã§ãã¦w
第ï¼ä¸ä»£ iPod touch ã« iPhone OS 3.0 beta ãã¤ã³ã¹ãã¼ã«ããã YouTubeã観ããªãã®ãæ°ã«ãªããã©ãiPhone 3G ã«ã¤ã³ã¹ãã¼ã«ãã¡ãã£ã人ã¯å¤§ä¸å¤«ããªï¼ Lockããã¦ãã ããããä»å¤ã®3.0ãªãªã¼ã¹ã¾ã§ beta ã§ææ ¢ããªãã¾ãããããªãã㧠iPhone 3.0â¦
ããã£ãããªã®ã§ãiPhone 3G ã« 3.0 ãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãï¼ã ã»ã»ã»ã¨ãããããã¨ããã§ããã誰ãããããã§ãããéçºå°ç¨æ©ãããªããã ä»ã«ãéè¦ãªçç±ããããã©ãããã¯ã¡ã³ãã¼ã·ãããªæ¹ã¯ç解ãã¦ããã¯ãã第ä¸ä¸ä»£ã®iPod touchã«ã¯ã¤ã³ã¹â¦
CNETã®ã©ã¤ãããã°ãè¦ããæ°iPhoneã®çºè¡¨ã¯ç¡ãã£ãã ãã«ãã¿ã¹ã¯ã®çºè¡¨ãç¡ãã£ãã大æ¹ã®äºæ³ã©ããã Cut, Copy and Paset ã®å®è£ ããã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ã§å©ç¨å¯è½ã«ãªãã¨ã®ãã¨ã ããã·ã¥ã®å®è£ ãAppleã®ãµã¼ãã¼çµç±ã§éç¥ãããã¨ã®ãã¨ã>â¦
CNETã«ããã¨ã3æ17æ¥ã«ã¢ããã«ããiPhone 3.0ãé¢é£ã¤ãã³ããéå¬ãããããªã ã¾ã ãã¾ã®ã¨ããèªåã«ã¯å½±é¿ã¯ãªããã èªåãå¸æããæ©è½ã¨ãã¦ã¯ãiTunesã©ã¤ãã©ãªã¸ã®ã¢ã¯ã»ã¹ã欲ããããªã ã¾ããããã ãªã ã¨æããã©ã ããã ã ãã«ãã¿ã¹ã¯â¦
CoreAnimationã使ã£ã¦UIViewãï¼æ®µéã§æ¡å¤§ãã¦ã¿ãã åç´æ¹åãæ°´å¹³æ¹åã®é ã§ï¼æ®µéã§æ¡å¤§ãã¦ã¿ãã ãµã³ãã«ã³ã¼ã initWithFrame: - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self setBackgroundColor:[UIColoâ¦
iPhoneã·ãã¥ã¬ã¼ã¿ã¼ã¯ãèµ·åæã®ããã©ã«ãã¯ç¸¦è¡¨ç¤ºã®ãã¼ãã¬ã¤ãã«ãªã£ã¦ããã 横表示ãããã¨ãã«ã¯æ¬¡ã®ã³ã¼ãããAppDelegateã®applicationDidFinishLaunching:ã¡ã½ããã§å®è¡ããã UIInterfaceOrientationLandscape : 縦表示ï¼ãã¼ã ãã¿ã³ã¯ä¸ï¼ Uâ¦
iPhone ãããããã¼ãº ã¯ãã¯ãã㯠æ¬æ¥çºå£²ã®ãiPhone ãããããã¼ãº ã¯ãã¯ããã¯ããå¶ç¶æ¸åºã§ã¿ããè³¼å ¥ããã ï¼Amazonã§ã¯å ¥è·å¾ ã¡ã«ãªã£ã¦ããããæ¸æ³ããã¯ã¿ã¯ã¼åºé ã§ã¯æ½¤æ²¢ãããã£ã¨ç¬¬ä¸ç« ãèªãã§ã¿ããããªãã»ã©ãããã¨ããå 容ãæ¸ãâ¦
SQLIte3 ååã«å¼ãç¶ããSQLite3ã®ç¶ãã AppDelegateã§ããã㨠iPhoneã·ãã¥ã¬ã¼ã¿ã¼ã®Documentãã©ã«ãã¸ã³ãã¼ããã ãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ã (sqlite3*)database ãåå¾ãã¨ãã - (void)applicationWillTerminate:(UIApplication *)applicationã§ãâ¦
å 容ã®ä¿åã«SQLiteã使ããã¨ã«ããã ãã¤ã³ã ãã¼ã¿ãã¼ã¹ã¯ãã¤ããªãã¡ã¤ã«ã§ãã¿ã¼ããã«ã®ã³ãã³ãããä½ãã $ sqlite3 test.db ãã¼ãã«ã®çæã¨åæãã¼ã¿ã®å ¥åã¯ããã¹ããã¡ã¤ã«ããèªã¿è¾¼ã¾ããã®ã楽ã sqlite> .read ./test_table.txt ãã¼â¦
10æ¥ã¯ãiPhone/iPod touch ããã°ã©ãã³ã°ã»ããã¼ãã«è¡ã£ã¦ããã ã»ããã¼å 容ã¯ããã°æ²è¼ã§ããªãã®ã§ãããããã ã¢ããã«ã»ããã¼ã«ã¼ã ã«è¡ãã®ã¯ããã§ï¼åº¦ç®ãã»ã»ã»ã
çå InterfaceBuilderã§ä½ã£ãTextField ãå®è£ ããã«ã¹ã¿ã ã»ã«ã¯ã©ã¹ããã ãã¥ã¼ã³ã³ããã¼ã©ã¼ã«ã¤ãã³ããéç¥ããæ¹æ³ãããããªãã¦æ©ãã§ããã ãããªã¤ã¡ã¼ã¸ { CustomTableViewCell } -+ { TableView } -+ { ViewController } ( TextField ç·¨éâ¦
ä»ã¾ã§ä½¿ã£ã¦ãã UITableViewDelagate ã¨ã UIPickerViewDelegate ã¨ãã ã¾ãã«ããã®ãã¨ã ã£ããã ã å©ç¨ãã¦ããéã¯ä½ã¨ãªãç解ãã¦ããã ãªã å®è£ ãã¦ã¿ã¦åãã¦ç解ã§ãããã¾ãããããªããã ã
å®è£ æ¹æ³ã§æ©ãã§ããã¨ãããProtocol 㨠Delegate ããã¼ã«ãªã£ã¦ãããã¨ãããã£ãã æ´æ°ãæ»ã£ã¦ããéããããã¨å®è£ ãå¤ãã¦ãããã©ã èªä½ã® Protocol ã使ããã¨ã§ãã¾ãå®è£ ã§ããããªäºæãããã
æ¦è¦ UIPickerViewã§ç¨®æã¨æ§å¥ãããããé¸æã§ããããã«ãããï¼Component = 2ï¼ UIPickerViewã§é¸æããå 容ããUITextFieldã«è¡¨ç¤ºãããã 使ãæ¹ã¯UITableViewDatasourceãUITableViewDelegateã¨ä¼¼ããããªæãã Interface Builder View ã« UIPickerVâ¦
ããã¼ãã«ãã¥ã¼ã使ã£ããµã³ãã«ãä½ããã·ãªã¼ãºã¯é¢åã«ãªã£ããã§ããã Guildã¿ã°ã§ãããããã¾ãããããªæãã§ã ä½æ¥å 容 ãã¼ãã«ãã¥ã¼ã®ã»ã«ã«ããã¹ããã£ã¼ã«ããåãè¾¼ãã ãã¾ã ãã¼ãã¼ããèªå表示ã ããã¹ãå ¥åä¸ãããã¹ããã£ã¼ã«â¦
ä½æ¥å 容 ååæ©ãã§ãããã¨ã解決ã ãã ã次ç»é¢ã®ããã²ã¼ã·ã§ã³ãã¼ã®å³å´ã«ãã¿ã³ã表示ã§ããªãã¦å°ã£ã¦ãã å®è£ æ¹æ³ãééãã¦ããã®ãããããªãã ãã£ã±ããééãã¦ããããã§ã ã©ããã Interface Builder 㧠Navigation Bar ã 追å ããã° Oâ¦
ä½æ¥å 容 ç»é¢ï¼æã ãã£ã©ã¯ã¿ã¼ãªã¹ãç»é¢ ãã£ã©ã¯ã¿ã¼ç»é²ç»é¢ 種æã¨æ§å¥ç»é¢ ã³ã³ããã¼ã©ã¼ã¯ã©ã¹ï¼ã¤ã åç»é¢ã«UIViewControllerã³ã³ããã¼ã©ã¼ã¯ã©ã¹ ãã¼ãã«ãã¥ã¼ãå®è£ ã ã»ã¯ã·ã§ã³ ãã£ã¹ã¯ãã¼ã¸ã£ã¤ã³ã¸ã±ã¼ã¿ã¼ã表示 ãã¥ã¼ãããã·ã¥ â¦
å¤æ´ æ©éã ãï¼ç¬ï¼ãUITableViewControllerã®ãµãã¯ã©ã¹ãä½ã£ã¦å®è£ ããã®ããããã UIViewControllerã®ãµãã¯ã©ã¹ãä½ããããã¤ã«UITableViewãã¢ã¦ãã¬ãã宣è¨ããã GUIã®å®è£ ã¨ã³ã³ããã¼ã©ã¼ã®ã¤ã³ã¹ã¿ã³ã¹åã¯ãªãã¹ã Interface Builder ã§è¡ãâ¦
ããããã£ãªã¹ã ãã¼ãã«ã»ã«ã«è¡¨ç¤ºããããã®ããããã£ãªã¹ããä½ã£ãã ã¨ããããæºåã ãã ããã¸ã§ã¯ããã¡ã¤ã« Window-Based Application ãã³ãã¬ã¼ãããæ°è¦ããã¸ã§ã¯ããä½ã£ãã Xcode HogeAppDelegateãåç´ã«AppDelegateã«ååå¤æ´ã AppDâ¦
Table View Cell ã¨ã ããããã£ãªã¹ã ã¸ã®èªã¿æ¸ãã¨ã ã¾ã éç¶ã¨ãã¦ããªããã ãããã¿ã¤ããä½ããªããç解ãã¦ãããã¨ã«ããã 試è¡é¯èª¤ãéããªããé²ãã¦ããã¨æãã®ã§ãéä¸ããããã¨ä»æ§ãå®è£ æ¹æ³çãå¤ãããããããªãã é½åã«ããé æ«â¦
ãµã³ãã«ã³ã¼ããçºãã¦ãããããããã¨ããããªãã¨ãããã å°ãã ããªã API Reference ãèªãã°è§£æ±ºãããã ãã©ã æ°ãå¤ãã®ã§æ¹ã㦠Document ãèªããã¨ã«ããã é¸ãã ã®ã¯ãããiPhone OS Table View ããã°ã©ãã³ã°ã¬ã¤ãï¼æ¥æ¬èªè¨³ï¼ã ã·ã¼ã±â¦
æ°åãå¤ãã¦ãiPhone Reference Library ã«ãããµã³ãã«"EditableDetailView"ãè¦ã¦ã¿ãã ããããã£ãªã¹ãã¸ã®èªã¿æ¸ãããã¼ãã«æä½ãã»ã«ã®ã«ã¹ã¿ãã¤ãºçã®ã³ã¼ããããããã°ãããã
Activateã§ããªãã¨ããåé¡ããã£ããã¡ã¼ã«ã§å³å¯¾å¿ãã¦ããããç¡äºã«Program Portalã«ã¢ã¯ã»ã¹ã§ããã æ¥æ¬èªã§å¯¾å¿ãã¦ãããããå®å¿ãããã«å¯¾å¿ãæ©ãããã°ãããï¼ ãã以éã¯NDAã«ãªã£ã¦ãã®ã§æ¸ããªããã©ãããããã¨è¨å®ã大å¤ããã§ããªãã¾â¦
ååï¼ã«ã¹ã¿ã ãã¿ã³ãã¢ã¯ã·ã§ã³ã·ã¼ããè¦åãã¥ã¼ãå®è£ ããã®ç¶ã 1. æ¦è¦ ããã²ã¼ã·ã§ã³ãã¼ã«ã«ã¹ã¿ã ãã¿ã³ã追å ãããã¿ã³ãæ¼ãã¨ç»é¢ä¸ããã¢ã¼ãã«ãã¥ã¼ã表示ããã ã¢ã¼ãã«ãã¥ã¼ã¯ããã²ã¼ã·ã§ã³ãã¼ã®ã«ã¼ããã¥ã¼ã¨ããã ããã²ã¼ã·ã§â¦
ååï¼ã©ã¸ãªã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ããã²ã¼ã·ã§ã³ãã¥ã¼ã追å ããã®ç¶ã ADCã®ã³ã¼ããµã³ãã«UICatalogãåèã«å®è£ ãã¦ã¿ããNaviRootViewControllerã«ã¤ãã¦æ¸ãå¿ãã¦ããã®ã§è¿½è¨ããã 1. æ¦è¦ ããã²ã¼ã·ã§ã³ã³ã³ããã¼ã©ã¼ã®ã«ã¼ããã¥ã¼ãæ°ããä½ã â¦
ååï¼ã©ã¸ãªã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ãã¥ã¼ã追å ããã®ç¶ã æ¦è¦ TabBarã®1çªç®ã«ãUINavigationController ã追å ããã ã¨ããããã«ã¼ããã¥ã¼ã« SimpleWindow ã表示ãã¨ãã Xcode AppDelegate.m ã® applicationDidFinishLaunching:ã¡ã½ãã㧠UINavigatioâ¦