Title20

Title20

1.砍掉原本的ViewController(mainstory board)
也要移除左邊的ViewController.swift然後move to Trash

2.建立一個UITableViewController

3.然後Is Initial View Controller

4.建立一個UITableViewController的類別

5.點擊mainstoryboard的Custom Class來建立關聯

6.建議Cell 的 identifier
(要在attributes inspector建立

7.更改Row Height

8.加入imageview, Label

9.進行Stack

10.設定成Top left right bottom (2,6,0,2)

11.創造一個類別NameBookTableViewCell

在類別內建立IBAction

 @IBOutlet var ReadmeButton: UIButton!
 @IBOutlet var TitleLabel: UILabel!
 @IBOutlet var thumbImageView: UIImageView!

12.MainStoryBoard繼承這個類別

13.由mainstoryboard左邊的Cell拉IBAction 連結

Comments

Popular posts from this blog

MEGA 暫存檔案刪除

IOS GCD多執行緒

利用CMD指令強制刪除