Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Customize the appearance of table view cells.
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *CellIdentifier = @"Cell";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
- if (cell == nil) {
- cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
- }
- // Set up the cell...
- switch (indexPath.row) {
- case 0:
- CGFloat boundsX = cell.contentView.bounds.origin.x;
- CGFloat boundsY = cell.contentView.bounds.origin.y;
- cell.text = @"Start";
- self.startDateSelected.frame = CGRectMake(boundsX + 40, boundsY + 4, 80, 25);
- [ cell addSubview: self.startDateSelected];
- break;
- case 1:
- cell.text = @"End";
- break;
- default:
- break;
- }
- return cell;
- }
Add Comment
Please, Sign In to add comment