HowTo
ä»å㯠iPhone ã§ã¯ãªã話ãã ãã¹ã¯ã¼ãã¨ãå¥ç´æ å ±ã¨ãã®ææ¸ãã¡ã¤ã«ãå®å ¨ã«ä¿ç®¡ãã¦ããæ¹æ³ã«ã¤ãã¦ããããã¨èãã¦ããã ä½ã¬ãã«ã§ OK ãªãã ãã©ãã ãã¡ã¤ã«ã¬ã¼ãx5 ã使ãæ¹æ³ã Stuffit ã§æå·åå§ç¸®ãã¦ããæ¹æ³ã ããããææ製åãªã®â¦
UIViewãå転ãããã«ã¯ãCGAffineTransformMakeRotationãsetTransform:ããã°ãããããã ä»åããããã£ãã®ã¯ãç©å½¢ã®å·¦ä¸ãåºç¹ã«å転ããããã¨ã UIViewã§ã¯anchorPointãè¨å®ã§ããªããã¨ãããã£ãã®ã§ãCALayerã使ã£ããanchorPointã¯ãå·¦ä¸ã(0.â¦
CoreAnimationã使ã£ã¦UIViewãï¼æ®µéã§æ¡å¤§ãã¦ã¿ãã åç´æ¹åãæ°´å¹³æ¹åã®é ã§ï¼æ®µéã§æ¡å¤§ãã¦ã¿ãã ãµã³ãã«ã³ã¼ã initWithFrame: - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self setBackgroundColor:[UIColoâ¦
iPhone ãããããã¼ãº ã¯ãã¯ãã㯠æ¬æ¥çºå£²ã®ãiPhone ãããããã¼ãº ã¯ãã¯ããã¯ããå¶ç¶æ¸åºã§ã¿ããè³¼å ¥ããã ï¼Amazonã§ã¯å ¥è·å¾ ã¡ã«ãªã£ã¦ããããæ¸æ³ããã¯ã¿ã¯ã¼åºé ã§ã¯æ½¤æ²¢ãããã£ã¨ç¬¬ä¸ç« ãèªãã§ã¿ããããªãã»ã©ãããã¨ããå 容ãæ¸ãâ¦
SQLIte3 ååã«å¼ãç¶ããSQLite3ã®ç¶ãã AppDelegateã§ããã㨠iPhoneã·ãã¥ã¬ã¼ã¿ã¼ã®Documentãã©ã«ãã¸ã³ãã¼ããã ãã¼ã¿ãã¼ã¹ãªãã¸ã§ã¯ã (sqlite3*)database ãåå¾ãã¨ãã - (void)applicationWillTerminate:(UIApplication *)applicationã§ãâ¦
å 容ã®ä¿åã«SQLiteã使ããã¨ã«ããã ãã¤ã³ã ãã¼ã¿ãã¼ã¹ã¯ãã¤ããªãã¡ã¤ã«ã§ãã¿ã¼ããã«ã®ã³ãã³ãããä½ãã $ sqlite3 test.db ãã¼ãã«ã®çæã¨åæãã¼ã¿ã®å ¥åã¯ããã¹ããã¡ã¤ã«ããèªã¿è¾¼ã¾ããã®ã楽ã sqlite> .read ./test_table.txt ãã¼â¦
æ¦è¦ 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 ã¨ã ããããã£ãªã¹ã ã¸ã®èªã¿æ¸ãã¨ã ã¾ã éç¶ã¨ãã¦ããªããã ãããã¿ã¤ããä½ããªããç解ãã¦ãããã¨ã«ããã 試è¡é¯èª¤ãéããªããé²ãã¦ããã¨æãã®ã§ãéä¸ããããã¨ä»æ§ãå®è£ æ¹æ³çãå¤ãããããããªãã é½åã«ããé æ«â¦
ååï¼ã«ã¹ã¿ã ãã¿ã³ãã¢ã¯ã·ã§ã³ã·ã¼ããè¦åãã¥ã¼ãå®è£ ããã®ç¶ã 1. æ¦è¦ ããã²ã¼ã·ã§ã³ãã¼ã«ã«ã¹ã¿ã ãã¿ã³ã追å ãããã¿ã³ãæ¼ãã¨ç»é¢ä¸ããã¢ã¼ãã«ãã¥ã¼ã表示ããã ã¢ã¼ãã«ãã¥ã¼ã¯ããã²ã¼ã·ã§ã³ãã¼ã®ã«ã¼ããã¥ã¼ã¨ããã ããã²ã¼ã·ã§â¦
ååï¼ã©ã¸ãªã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ããã²ã¼ã·ã§ã³ãã¥ã¼ã追å ããã®ç¶ã ADCã®ã³ã¼ããµã³ãã«UICatalogãåèã«å®è£ ãã¦ã¿ããNaviRootViewControllerã«ã¤ãã¦æ¸ãå¿ãã¦ããã®ã§è¿½è¨ããã 1. æ¦è¦ ããã²ã¼ã·ã§ã³ã³ã³ããã¼ã©ã¼ã®ã«ã¼ããã¥ã¼ãæ°ããä½ã â¦
ååï¼ã©ã¸ãªã¤ã³ã¿ã¼ãã§ã¤ã¹ã«ãã¥ã¼ã追å ããã®ç¶ã æ¦è¦ TabBarã®1çªç®ã«ãUINavigationController ã追å ããã ã¨ããããã«ã¼ããã¥ã¼ã« SimpleWindow ã表示ãã¨ãã Xcode AppDelegate.m ã® applicationDidFinishLaunching:ã¡ã½ãã㧠UINavigatioâ¦
ååï¼ã©ã¸ãªã¤ã³ã¿ã¼ãã§ã¤ã¹ãå®è£ ããã®ç¶ãã æ¦è¦ TabBarã«è¿½å ãããUIViewControllerãé åã«ããUITabViewControllerã«ç»é²ããã UIViewControllerã®ã¤ã³ã¹ã¿ã³ã¹å¤æ°ãtitle 㨠tabBarItem ãè¨å®ãã¦ãããã¨ã§ãç»é¢è¡¨ç¤ºæã«TabBarã«ãã®titleã¨â¦
æ¦è¦ UITabBarControllerãã¦ã£ã³ãã¦ã®æä¸ä½ã«è¿½å ãããã¨ã§ç»é¢ã«è¡¨ç¤ºããã åã¿ãã«è¡¨ç¤ºãããã¥ã¼ã¯æªå®è£ ã Xcode Xcodeã®æ°è¦ããã¸ã§ã¯ããã³ãã¬ã¼ããããWindow-Based Applicationããé¸æããã AppDelegate.hãã¡ã¤ã«ã« UITabBarController â¦