自定義UITextFields效果:MMTextFieldEffects

jopen 9年前發布 | 8K 次閱讀 iOS開發 移動開發 MMTextFieldEffects

TextFieldEffects擴展擁有自定義UITextFields效果,受Codrops啟發,使用Objective-C構建。
</div>

Currently it features the following effects from the article:

  • Ichiro
  • Juro
  • Kuro
  • Minoru
  • Nariko
  • Yoshika
  • Nao

Credits

Improvement

  • Nao is still in testing phase,trying to crack the animation, Feel Free to crack and share the code

Screenshots

Ichiro

MMTextFieldEffects

Juro

MMTextFieldEffects

Kuro

MMTextFieldEffects

Minoru

MMTextFieldEffects

Nariko

MMTextFieldEffects

Yoshiko

MMTextFieldEffects

Nao

MMTextFieldEffects

How to Use

Just subclass your TextField to respective class.

MMTextFieldEffects

Note

  • Default TextField Height Used Here is80Feel Free To Customise and Play with Properties According to your Requirements, Following are properties used for specific purpose
  • borderTextFieldFor Outer Frame Used in Ichiro , Juro , Minoru , Nariko and Yoshiko
  • contentTextfieldFor Inner Frame Used in Ichiro and Nariko
  • leftLayerFor Outer Layer Used In Kuro and Nao
  • rightLayerFor Outer Layer Used In Kuro
  • placeHolderLabelPlace Holder Text Used in All
  • textRectForBoundsMethod to move the cursor of textfield

項目主頁:http://www.baiduhome.net/lib/view/home/1441094155050

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!