ãã¼ãã«ãã¥ã¼ã»ã«ãInterfaceBuilderã§ä½ãå ´åã®æ³¨æ
ã¯ããã¦ã®iPhone3ããã°ã©ãã³ã° ã«è¤éãªãã¼ãã«ãã¥ã¼ã®ã»ã«(UITableViewCell)ãnterfaceBuilderã§ä½ãæ¹æ³ãæ¸ããã¦ãã¾ãã
è¦ç´ããã¨
- UITableViewCellãç¶æ¿ããã«ã¹ã¿ã ã»ãã¼ãã«ãã¥ã¼ã»ã«ã¯ã©ã¹ãä½ã
- ã«ã¹ã¿ã ã»ãã¼ãã«ãã¥ã¼ã»ã«ã¯ã©ã¹ä¸ã§ããã°ã©ã ã¨é¢é£ããUIè¦ç´ ãã¡ã³ãã¼ã«ãã
- InterfaceBuilderã§ã«ã¹ã¿ã ã»ãã¼ãã«ãã¥ã¼ã»ã«ç¨ã®xibããã¶ã¤ã³ãã
- InterfaceBuilderã§1ã§ä½ã£ãã¡ã³ãã¼ã¨UIã®å¯¾å¿ä»ããè¡ã
- ããã°ã©ã ã§ã¯ NIBãããã¼ãã«ãã¥ã¼ã»ã«ãèªã¿è¾¼ã
// Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CouponTableViewCellIdentifier"; CouponTableViewCell *cell = (CouponTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CouponTableViewCell" owner:self options:nil]; for (id obj in nib) { if ([obj isKindOfClass:[CouponTableViewCell class]]) { cell = (CouponTableViewCell *)obj; } } } ã»ã»ã»ã»
ããã§æ³¨æããªããã°ãããªãã®ãã3ã®UIã¨ã¡ã³ãã¼ã®å¯¾å¿ä»ãã§ãããFile'sOwnerã§ã¯ç¡ããã¹ã¿ã ã»ãã¼ãã«ãã¥ã¼ã»ã«ã¨å¯¾å¿ä»ãããã¨ããç¹ã§ãã
ç§ã¯ããã§ãããªã¾ãã ^^);