Checklists

This is the second app

How it looks like pp2 : a to-do list

The app lets you organise to-do items into lists and then check off these items once you're done with them. You can set a reminder on a to-do item that will make the iPhone pop up an alert on the due date, even when the app isn't running.


Playing with table viewspp6


Changing a regular controller into a table view controller pp 13


The anatomy of a table viewpp16 !!!!!

Two styles of tables: "plain and groped".

A cell is a view that shows a row of data that happens to be visible at that moment.

A handy new feature named prototype cells

A checkmark is provided by something called the accessory, which is a built-in subview that appears on the right side of the cell.


We need to set a reuse identifier on the cell. This is an internal name that the table view uses to find free cells to reuse when rows scroll off the screen and new rows must become visible. The table needs to assign cells to those new rows and recycling existing cells is more efficient than creating new cells. This technique is what makes your table views scroll smoothly. 

You should give each cell type its own identifier, so the table view can assign the right cell to the right row. pp19


A tag of the label. pp28

Using tags is a handy trick to get a reference to a control without having to make a @property for it.


Tapping on the rows pp33

We are going to change this so that tapping the row will toggle the checkmark on and off.

The delegation patternpp35


MVC pp39

Three fundamental design pattern of iOS:

MCV

Delegation: making one object do something on behalf of another;

Target-Action: connecting events such as button taps to action methods.


Make our own object of type we designed.pp51


Adding new items to Checklist pp67





Part 2

about Icon in checklist cell pp75


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值