在Xcode中的使用方法:
1、首先安裝好Reveal,下載地址:http://download.revealapp.com/Reveal.app.zip
2、在Reveal軟件的菜單欄中選擇【Help】-【Show Reveal Library In Finder】,會(huì)顯示Reveal的FrameWork和dylib文件,需要在Xcode項(xiàng)目中引入。
3、在Xcode項(xiàng)目中配置如下幾個(gè)地方:
1)添加Reveal的Framework文件,將Framework文件拖到項(xiàng)目導(dǎo)航面板中,在彈窗中選擇Add to Target和Copy Item if need。(這個(gè)操作會(huì)把dylib文件復(fù)制到您的項(xiàng)目中,如果reveal更新了,那需要重新操作一遍來覆蓋舊文件)

2)在項(xiàng)目配置區(qū)域,選擇Build Phases,在Link? Binary With Libraries節(jié)點(diǎn)中刪除Reveal庫(kù)。

3)? 選擇Build Setting,在右上角搜索框中輸入關(guān)鍵字:Other Link,會(huì)自動(dòng)帥選出Linking節(jié)點(diǎn)中的Other Linker Flags屬性節(jié)點(diǎn),輸入內(nèi)容:

3、Xcode的配置完成,現(xiàn)在選擇一個(gè)iphone模擬器開始運(yùn)行您的項(xiàng)目。運(yùn)行成功后,切換到Reveal程序界面。在左上角No Connection那個(gè)下拉框中選擇您的項(xiàng)目名稱。

4:Reveal的三維顯示
