ALL OF ME
2014年7月27日
iOS 7 開發教學 - 替 UIButton 加上邊框 ( iOS 7 Add borders for UIButton tutorial )
在 iOS 7 預設的按鈕中是沒有邊框的,因此本篇會快速的介紹一下如何替 UIButton 增加邊框。
加入邊框:
我們透過 UIButton 的
layer
很方便的來設定按鈕的邊框,參考如下圖:
layer
.
cornerRadius
:設定按鈕圓角的弧度
layer
.
borderWidth
:設定邊框的寬度
layer
.
borderColor
:設定邊框顏色
以上就是替 UIButton 加入邊框的方法。其他 iOS 相關開發教學可以參考
本篇整理
。
較新的文章
較舊的文章
首頁
熱門文章
Mac - 透過 Command Line 安裝 .dmg 檔案 ( Mac - How to install .dmg through command line )
Mac 系統已經將安裝軟體的過程化繁為簡,但有時候還是會需要透過 Command Line 安裝軟體的情況。所以,本篇將介紹如何透過 Command Line 安裝 .dmg 檔案。( 其他 Mac 相關教學可以參考 本篇整理 。If you want to read this ...
Tornado 教學 (8) - Resolve [Errno 97] Address family not supported by protocol
在建立 Tornado Web Application 時遇到許多問題,其中一個就是 [Errno 97] Address family not supported by protocol ,為了解決這個問題,看了不少網路上的討論最後得以解決。因此,本篇將解決的方式記錄下來提供大...
Eclipse - 設定啟動時工作區參數 ( Configure workspace on startup )
這篇針對 Eclipse 啟動時選擇工作區的方法做幾個整理。除此之外其實真正困擾我的問題是似乎在裝完 Google Plugin 後一陣子,當 Eclipse 每次重新啟動時不會彈出視窗讓我選擇要使用的工作區,即使我已經將參數設定成每次開啟都詢問 ( Prompt for wor...
Django 實作教學 - 處理 JSON Request ( Django - Handle JSON request )
之前分享了如何透過 Django 回傳 JSON 資料,接著要利用本篇來介紹如何處理 JSON Request。( 其他 Django 相關教學可以參考 本篇整理 。If you want to read this article in English, you can visi...
Linux - 沒有 SSH 仍然可以使用 Netcat 來遠端開啟 Shell prompt ( Connect a remote machine and open a shell prompt by using netcat )
非常有名的網路工具 Netcat ( nc ) 有許多好用的技巧,今天要介紹的是如果遠端機器沒有 SSH、Telnet 等工具的話,可以使用 netcat 來建立連線並開啟 Shell prompt。