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 相關開發教學可以參考
本篇整理
。
較新的文章
較舊的文章
首頁
熱門文章
PostgreSQL 教學 - 快速建立資料庫與使用者 ( Create database and user using PostgreSQL )
相信 PostgreSQL 已經成為許多團隊愛用的資料庫,因此本篇文章將介紹如何透過 PostgreSQL 的指令簡單的將資料庫與使用者建立起來,雖然沒難度但仍在這記錄下來供其他人參考。 ( If you want to read this article in Englis...
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 教學 (11) - 利用 Raspberry Pi 建立自己的 Google TV # 2 ( Build your own Google TV by on Raspberry Pi tutorial # 2 )
本篇繼續介紹如何建立自己的 Google TV ( RaspberryPi TV ),之前將 Node.js 相關套件都安裝完畢,我們接著還需要安裝、設定其他軟體 ( Chromium、Youtube-dl、OMXPlayer ) 以及分享實際操作過程。另外,各位朋友可以參考 原...
Mac - 類似 Guitar Pro 的免費編曲軟體 : TuxGuitar ( TuxGuitar, a free alternative to Guitar Pro )
TuxGuitar 是一個 Open Source 的編曲軟體,不僅擁有多個平台版本 ( Windows、Linux、Mac ),而且還可以讀取 Guitar Pro 的檔案。但也因為是免費的軟體,所以音源、效果沒有其他軟體來的多樣化。但對於練習、簡單編曲是絕對沒問題的。( 其他...