IOS: Using UITableView to create a table application Walkthrough (4) Customizing a Cell

Source: Internet
Author: User

Today I'll show you how to use a custom cell in a table application and a simple action to select a cell.

Objective of this article

This article is based on the above, the application is extended to introduce the following content:

Customize cell layout display in table application;

Select a cell and open the user link address in Safari;

A. Custom cell walkthrough

First we review the previous article, in Walkthrough (2), when we define the data structure, we define a property named: favorite, to indicate our preference for the microblog account. In this walkthrough, we will display the preference in the form of a pentagram by customizing the cell, and after the walkthrough is finished, you'll see the following run results:

Before we start, we need to prepare a few pictures of the stars, please click here myfocusdemo4images.zip download.

Get ready, let's get started: D

1. Open my focus project;

2. Drag and drop the three picture files after downloading and unzip to the "Images" group and let go, pop-up the following Figure dialog box:

After confirming that the Copy items into destination groups folder (if needed) check box is selected, click the Finish button;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.