右邊帶有圓圈的簡單iOS按鈕:NPFlipButton

y37f 9年前發布 | 19K 次閱讀 iOS開發 移動開發 NPFlipButton

NPFlipButton 是一個在右邊帶有圓圈的簡單按鈕,當狀態改變時就會顯示動畫。

特性

  • 自動繪制按鈕,并設置自己的文字
  • 動畫的狀態變化

安裝

Grab the files inClasses/NPButtonWithFlip,Classes/NPFlipViewand put it in your project.

使用

Instanciate a new NPButtonWithFlip or get it from a Storyboard Configure the parameters:

 button.setParameters(borderColor, offColor: offColor, onColor: onColor, flipOffImage: imageOff, flipOnImage: imageOn, text: "Button", textFont: textFont)

右邊帶有圓圈的簡單iOS按鈕:NPFlipButton

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

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