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 相關開發教學可以參考
本篇整理
。
較新的文章
較舊的文章
首頁
熱門文章
Spring Framework 實作教學 - 教學文章彙整 ( Useful tutorials for Spring framework )
為了方便其他人參考 Spring Framework 相關教學,因此將發表過的文章整理詳細列出。之後若發表其他有關 Spring Framework 的文章會同步更新此篇內容。
Play Framework 實作教學 (6) - 自動啟動、停止 Application ( Auto start and stop Play Framework application )
這篇要來介紹如何自動啟動 ( auto start )、停止 ( auto stop ) Play Framework Application,因為在完成專案之後,使用 PROD 模式常常需要啟動、重啓專案,目前好像還沒有看到官方提出的方法,所以我整理了我自己的方式來達到重啟、停...
iOS 開發教學 - 暸解 Storyboard 1/2 ( iOS Development - A basic introduction to Storyboard Part 1)
為了打好 iOS 開發的基礎,我們需要先稍微暸解 Storyboard 是怎麼運作的,所以我將在這篇文章中簡單介紹 Sotryboard 的運作流程以及 Storyboard 與你的程式碼 (.swift) 是怎麼連結起來的。最後,本篇文章是基於 Swift 4 的環境下進行...
Mac - 移除 Java JDK 6 ( Remove Java JDK 6 on Mac )
最近在系統重整,加上 Google App Engine SDK 不再支援 Java 6 了,因此趁機會將 Java 6 移除並記錄下來方便參考 ( Java 7 安裝路徑與 6 不同 )。( 其他 Mac 相關教學可以參考 本篇整理 )
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...