Category: iPhone

uitableviewcell – custom background when selected

Posted by – July 21, 2011

- (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
}

Custom UITableViewCell

Posted by – June 6, 2010

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.

More

iPhone SDK4 Beta 4

Posted by – May 18, 2010

Apple has released new version of iPhone OS4 SDK (SDK4) Beta 4…

Build: 10M2252

Download & Availability: iPhone Developer Program/Members only

Mzdy a penize

Posted by – April 10, 2010

Aplikace “Mzdy a penize” pro iPhone jiz v AppStore. Cena 0.79Euro