- (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]; cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SelectedCellBackground.png"]] autorelease]; } // configure the cell }
Category: iPhone
Custom UITableViewCell
I’m using my own UITableViewCells – instead of creating some in IBuilder, because then you have to load them each time from NIB file and it really slowdown your app. So, this is simple example how to do it – TableCell contains only two non-editable labels with text.
iPhone SDK4 Beta 4
Apple has released new version of iPhone OS4 SDK (SDK4) Beta 4…
Build: 10M2252
Download & Availability: iPhone Developer Program/Members only
Mzdy a penize
Aplikace “Mzdy a penize” pro iPhone jiz v AppStore. Cena 0.79Euro