創作一個自己有興趣的 App

想製作一個App,收集小情人的好朋友,以及平常最常看的影片。

*動畫git

*Github

*總共用了7個Controller去Layout,NavigationController,TabController以及ListViewController是首頁,首頁搭配三個好朋友的圖片,”毛怪”, “佩佩豬”以及”小猴子” 可以進到個別的ViewController, 也就是JamesView,PeppaPigView,5Monkeys 這三個Controller。最後一個about Controller簡單說明app內容。

*Button, image+tap gesture, image + button 三種方式的Segure
試了三種方法來完成Segure
button設定背景圖-毛怪
image設定背景圖佩佩豬 + tap gesture
image設定圖片5Monkeys 再覆蓋一個button

*Navigation bar返回功能 & navigation bar 的 back button 標題

預計首頁的Title是Friends,所以三張圖片進入後,預期返回的地方應該出在Friends,結果卻是出現back,而且首頁加入navigation item後,已經在title屬性打上Friends,實際跑起來title卻是空白的。後來才發現Navigation Controller是串到tab controller,所以首頁的title要出現的話就要輸入在tab controller上的navigation item title。

*navigation controller 手勢觸發 bar 隱藏的功能
首頁的地方,滑動時,把navigation 隱藏起來
打勾navigation controller Hide bar 的屬性 On Swipe。

*tab bar 隱藏的功能:
about View Controller可以在tab controller底下的 Contacts item進入,也可以在毛怪的頁面右上角進入,差別在於毛怪右上角進入about 頁面時,因為同時搭配navigation controller以及tab controller,就可以打勾about controller Layout的 Hide Bottom Bar on Push屬性達到隱藏tab 功能。

*手殘remove Project 中的 Assets reference時,怎麼加回來
不小心手殘把reference從專案中移除,但Assets folder還存在,只要直接把Assets拖曳進去project,再把Target membership打勾,圖片就全部回來了。

PS : 有一樣東西還沒搞懂,就是Translucent,知道是半透明度
但是打勾跟沒打勾,畫面會有往上跟往下的差別,有時間再來好好研究一下好了。

--

--