Swift 写的分享按钮

移动开发
Swift 写的分享按钮,简单好用

 源码简介:Swift 写的分享按钮,简单好用

测试环境: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

责任编辑:倪明
相关推荐

2015-07-28 16:35:27

Swift猜拳

2015-08-03 11:42:27

Swift汉堡式过度动画

2015-03-19 15:17:11

2012-03-31 10:05:51

WEBCSS

2013-04-10 15:35:28

微信公众平台技巧

2015-09-29 10:18:22

2021-06-07 10:00:56

yml文件开发

2015-04-17 16:07:11

swiftOC

2015-07-30 10:42:38

SwiftUIButton

2015-11-23 10:07:19

Swift模式匹配

2015-07-01 13:50:29

Swift开源思考

2015-07-08 16:43:02

Configurati

2015-03-16 10:33:14

Swift指针

2016-06-07 14:42:18

Swift设计

2015-01-21 16:25:29

Swift指针

2014-03-12 10:42:10

equeue分布式消息队列

2015-10-28 10:31:47

2023-09-11 12:23:50

2015-10-16 09:59:52

SwiftCocoa

2014-07-01 09:22:01

SwiftObjective-CiOS
点赞
收藏

51CTO技术栈公众号