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 相關開發教學可以參考
本篇整理
。
較新的文章
較舊的文章
首頁
熱門文章
Dropbox Datastore API for JavaScript 教學 (2) - 簡介 Datastore 工作流程與環境建立 ( Talk Dropbox Datastore JavaScript API workflow )
繼上一篇 Dropbox Datastore JavaScript SDK 的安裝及設定 ,接著來建立 Web App 操作環境與了解 Datastore 的使用流程。
iOS 開發教學 - 暸解 Storyboard 1/2 ( iOS Development - A basic introduction to Storyboard Part 1)
為了打好 iOS 開發的基礎,我們需要先稍微暸解 Storyboard 是怎麼運作的,所以我將在這篇文章中簡單介紹 Sotryboard 的運作流程以及 Storyboard 與你的程式碼 (.swift) 是怎麼連結起來的。最後,本篇文章是基於 Swift 4 的環境下進行...
Spring Framework 實作教學 - 教學文章彙整 ( Useful tutorials for Spring framework )
為了方便其他人參考 Spring Framework 相關教學,因此將發表過的文章整理詳細列出。之後若發表其他有關 Spring Framework 的文章會同步更新此篇內容。
React 教學 - 減少 React App 大小 ( Reduce React app's size using Webpack )
開發 React 應用程式時,比較常遇到的問題就是 bundle.js 或其他檔案太大,導致頁面載入時間過長。但透過 Webpack 與一些優化技巧可以大幅減少整個應用程式大小。因此,本篇將介紹如何利用 Webpack 減少 React 應用程式大小。( If you want ...
Play Framework 實作教學 (6) - 自動啟動、停止 Application ( Auto start and stop Play Framework application )
這篇要來介紹如何自動啟動 ( auto start )、停止 ( auto stop ) Play Framework Application,因為在完成專案之後,使用 PROD 模式常常需要啟動、重啓專案,目前好像還沒有看到官方提出的方法,所以我整理了我自己的方式來達到重啟、停...