第一步:開啟Xcode建立專案就不詳細描述啦!
第二步:(1)main函式



1:在這裡Ruby環境環境預設已安裝或升級+安裝CocoaPodsOK。
2:在目標工程中建立Podfile檔案,終端輸入:$ cd 進入到你目標工程目錄下
3:在目錄下輸入$ touch Podfile 命令
4:使用vim編輯Podfile檔案,輸入$ vim Podfile命令
5:use_frameworks!
platform:osx, 10.11
target 'MACEwang' do
pod 'Masonry'
end
6:終端輸入:$ pod install 點選執行大功告成
複製程式碼
第四步:配置PrefixHeader檔案
第五步:配置log檔案

進入mac開發大門已經OK,接下來自由翱翔吧!??
(ps:純程式碼或xib或storyboard各有優缺點,本人稍微喜歡純程式碼?)