![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码片段
iteye_16613
这个作者很懒,什么都没留下…
展开
-
将页面全部控件上移动和还原
@IBActionfunc password_keyboard_begin(sender: AnyObject) { // let transform_up_100 = CGAffineTransformMakeTranslation(0, -150) // UIView.beginAnimations(nil, context: nil) ...2016-04-09 13:45:05 · 74 阅读 · 0 评论 -
[转载]一个ScrollView的例子
// // ViewController.swift // AutolayoutScrollViewInCode // // Created by 张星宇 on 15/12/21. // Copyright © 2015年 张星宇. All rights reserved. // import UIKit import SnapKit let ScreenWi...原创 2016-04-14 23:53:58 · 119 阅读 · 0 评论 -
[转载]集成UIView
来源: http://stackoverflow.com/a/27057168/2967461 class MyView: UIView { override init (frame : CGRect) { super.init(frame : frame) addBehavior() } conveni...原创 2016-04-16 21:42:57 · 128 阅读 · 0 评论