iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 16
0
Mobile Development

從零開始-30日練習開發iOS APP系列 第 16

從零開始-30日練習開發iOS APP-TableViewCell & XIB (一) Day-16

前言:
在製作 UITabelView 的時候,會希望 Cell 可以有其他 UI元件 的功能,此時就會選擇用 xib 來完成

正文:
新增檔案
https://ithelp.ithome.com.tw/upload/images/20200925/201297159PL9MbPKLz.png

點選 Cocoa Touch Class
https://ithelp.ithome.com.tw/upload/images/20200925/201297151trN6Xa1EH.png

將 Xib 選項打勾
https://ithelp.ithome.com.tw/upload/images/20200925/20129715v1WOphsiSL.png

成功新增後會看到以下兩張圖的畫面
https://ithelp.ithome.com.tw/upload/images/20200925/201297158xmrzbRWkA.png
https://ithelp.ithome.com.tw/upload/images/20200925/20129715Sj241ndGFp.png

在 Xib 檔案內可以使用 UI元件
使用方法與 Main.Storyboard 的拉法一樣
https://ithelp.ithome.com.tw/upload/images/20200925/20129715a55n0KLwlu.png


上一篇
從零開始-30日練習開發iOS APP-模組化 Day-15
下一篇
從零開始-30日練習開發iOS APP-TableViewCell & XIB (二) Day-17
系列文
從零開始-30日練習開發iOS APP30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言