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 ...
Linux - 沒有 SSH 仍然可以使用 Netcat 來遠端開啟 Shell prompt ( Connect a remote machine and open a shell prompt by using netcat )
非常有名的網路工具 Netcat ( nc ) 有許多好用的技巧,今天要介紹的是如果遠端機器沒有 SSH、Telnet 等工具的話,可以使用 netcat 來建立連線並開啟 Shell prompt。
Tornado 教學 (8) - Resolve [Errno 97] Address family not supported by protocol
在建立 Tornado Web Application 時遇到許多問題,其中一個就是 [Errno 97] Address family not supported by protocol ,為了解決這個問題,看了不少網路上的討論最後得以解決。因此,本篇將解決的方式記錄下來提供大...
Nginx 教學 - 教學文章彙整 ( Useful tutorials for Nginx )
為了方便其他人參考 Nginx 相關教學,因此將發表過的文章整理詳細列出。之後若發表其他有關 Nginx 的文章會同步更新此篇內容。
Mac - 教學、資源與使用技巧整理 ( Useful tutorials and resources for Mac )
為了方便其他人參考 Mac 相關教學、資源與使用技巧,因此將發表過的文章整理詳細列出。之後仍然會發表其他有關 Mac 的文章,同時也會更新此篇內容。