自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Swift 寫的分享按鈕

移動開發(fā)
Swift 寫的分享按鈕,簡單好用

 源碼簡介:Swift 寫的分享按鈕,簡單好用

測試環(huán)境:Xcode 6.2,iOS 7.0以上

源碼效果:

Alt text Alt text

源碼片段:

  1. let deformationBtn = DeformationButton(frame: CGRectMake(10010014036), color: getColor("e13536")) 
  2. self.view.addSubview(deformationBtn) 
  3.  
  4. deformationBtn.forDisplayButton.setTitle("微博注冊", forState: UIControlState.Normal) 
  5. deformationBtn.forDisplayButton.titleLabel?.font = UIFont.systemFontOfSize(15); 
  6. deformationBtn.forDisplayButton.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal) 
  7. deformationBtn.forDisplayButton.titleEdgeInsets = UIEdgeInsetsMake(0600
  8. deformationBtn.forDisplayButton.setImage(UIImage(named:"微博logo.png"), forState: UIControlState.Normal) 
  9.  
  10. deformationBtn.addTarget(self, action: "btnEvent", forControlEvents: UIControlEvents.TouchUpInside) 

下載地址:http://down.51cto.com/data/2070216

責(zé)任編輯:倪明
相關(guān)推薦

2015-07-28 16:35:27

Swift猜拳

2015-08-03 11:42:27

Swift漢堡式過度動畫

2012-03-31 10:05:51

WEBCSS

2015-03-19 15:17:11

2013-04-10 15:35:28

微信公眾平臺技巧

2015-09-29 10:18:22

2021-06-07 10:00:56

yml文件開發(fā)

2015-04-17 16:07:11

swiftOC

2014-03-12 10:42:10

equeue分布式消息隊列

2016-06-07 14:42:18

Swift設(shè)計

2015-01-21 16:25:29

Swift指針

2015-07-01 13:50:29

Swift開源思考

2015-07-08 16:43:02

Configurati

2015-11-23 10:07:19

Swift模式匹配

2015-03-16 10:33:14

Swift指針

2015-07-30 10:42:38

SwiftUIButton

2015-10-28 10:31:47

2023-09-11 12:23:50

2015-02-04 10:32:57

Objective-CSwift

2015-10-16 09:59:52

SwiftCocoa
點贊
收藏

51CTO技術(shù)棧公眾號