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 相關開發教學可以參考
本篇整理
。
較新的文章
較舊的文章
首頁
熱門文章
Eclipse - 設定啟動時工作區參數 ( Configure workspace on startup )
這篇針對 Eclipse 啟動時選擇工作區的方法做幾個整理。除此之外其實真正困擾我的問題是似乎在裝完 Google Plugin 後一陣子,當 Eclipse 每次重新啟動時不會彈出視窗讓我選擇要使用的工作區,即使我已經將參數設定成每次開啟都詢問 ( Prompt for wor...
Mac - 從終端機利用 Terminal-notifier 發送 OS X Notification ( Send native notifications from terminal by using terminal-notifier on Mac OS X )
相信大家有時等待測試、shell script 完成任務需要很長的時間,因此希望任務完成可以即時收到通知。在 Mac 上有 Growl 可以滿足這個需求,但 Growl 是收費軟體。所以我採用 terminal-notifier 工具發送 OS X 的通知 ( Notific...
Gitlab - 解決 Permission denied (publickey) ( Resolve Gitlab permission denied (publickey) error )
Gitlab 為了讓使用者部署程式更方便,它提供了一個功能叫 Deploy Keys,使用者將 SSH Public Key 加入,之後不需要密碼就可以獲得程式庫 read-only 的權限,所以很適合運用在 CI 中。通常在 Unix-like 環境中將對應的 Key 與其使用...
Raspberry Pi 教學 (14) - 安裝 Arch Linux ( Install Arch Linux on Raspberry Pi tutorial )
Arch Linux 是注重輕量、彈性、極簡的 Linux 版本,非常適合使用者打造自己想要的系統,本篇將介紹透過 Mac 系統安裝 Arch Linux 至 Raspberry Pi 與相關設定。
PostgreSQL 教學 - 快速建立資料庫與使用者 ( Create database and user using PostgreSQL )
相信 PostgreSQL 已經成為許多團隊愛用的資料庫,因此本篇文章將介紹如何透過 PostgreSQL 的指令簡單的將資料庫與使用者建立起來,雖然沒難度但仍在這記錄下來供其他人參考。 ( If you want to read this article in Englis...