how to customise UITableView?

How to add image and texts as shown in the below snapshots?I am already using navigation controller in my application, so is there any problem in including UITableView controller as a new navigated page from home page.


I would subclass the UITableView Cell and create my own cell MyCustomTableViewCell, with the UIImageView and UILabel inside.

Then you could do this to update your cells in reusing case

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]

    MyCustomTableViewCell *myCell = (MyCustomTableViewCell)cell;
    myCell.label.text = newText;
    myCell.imageView.image = newImage;

    return cell;

when configuring your UITableViewCellyou can add a UIImageView and UILabel to the cells contentView.

    UITableViewCell *cell = ...;

    UIImageView *yourImageView = ...;

    UILabel *yourLabel = ...;

    [cell.contentView addSubview:yourImageView];
    [cell.contentView addSubview:yourLabel];

Need Your Help

How to 'encrypt' information passed along in URL when redirecting in PHP?

php security url encryption

Sorry if the title's unclear, couldn't think of anything better since I'm still new to this area. :)

Running java program in windows


I've developed a Java program in Eclipse and ready to release it.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.