ALL OF ME
2014年7月18日
iOS 7 開發教學 - 增加 UITextField 的清除內容按鈕 ( iOS 7 Add a clear button to UITextField element tutorial )
之前介紹了如何變更 UITextField 的 Return 鍵的種類,這次要介紹如何增加 UITextField 物件的清除內容按鈕。
首先,第一個在 TextField 中加入 Clear button 的方法很簡單,透過 Storyboard 選擇 TextField 物件,如下圖:
第二個方可以透過在View controller 中設定 UITextField 的屬性
clearButtonMode
,請參考下圖:
可以設定的參數如下:
設定完顯示結果,如下圖:
以上就是兩個在 TextField 中加入清除內容按鈕的方法。其他 iOS 相關開發教學可以參考
本篇整理
。
較新的文章
較舊的文章
首頁
熱門文章
AWS - 在 Amazon Linux 上安裝 Docker ( Install Docker on Amazon Linux )
Amazon 已經推出 EC2 Container Service 一陣子了,但本篇還是將如何自行在 Amazon Linux 上安裝 Docker 的步驟記錄下來。( 其他 AWS 相關教學可以參考 本篇整理 。If you want to read this article ...
Play Framework 實作教學 (1) - 架構簡介 ( Play Framework tutorial )
從這篇開始 Play Framework Step by Step 系列,雖說是教學但其實也只是個人實作分享, 之前有介紹 (1.) 安裝 Play Framework 、(2.) 建立專案教學 ,可先參考後再開始此系列文章。
Play Framework 實作教學 (5) - 加入 Ebean ( 搭配 evolutions ) ( Play with Ebean、evolutions )
在上篇文章已經談到 H2 Database Engine 的使用方法之後,接著介紹 Ebean 要如何應用在 Play Framework,對於 Ebean 的基本介紹可以參考 官方網站 的文件,
Eclipse - 加入自訂的 Libraries
當專案想加入自訂的 Libraries 時可以透過 Eclipse 加入並群組化,過程非常方便跟簡單。而且若之前有建立過的 Libraries 也可以直接引入,不需要每新增專案就得重新一一加入 JAR 檔。
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...