摘要: 一般做登录界面或者要填写表之类的页面会经常使用到textfield。使用很简单,但是其实他有很多小的处理细节,这回让你显得有经验,交互性很好。在这里呢,我就直接拿stroyboard中的截图来说。 clear button: appers while editing//选这个,编辑的时候会出现那个半 阅读全文
posted @ 2017-01-05 17:40 蓝天下的田埂上 阅读(127) 评论(0) 推荐(0) 编辑
摘要: let past = UIPasteboard.generalPasteboard() past.string = pasteboardStr // pasteboardStr就是你要复制的字符串 SVProgressHUD.showInfoWithStatus(String(format: "订单 阅读全文
posted @ 2017-01-05 17:25 蓝天下的田埂上 阅读(834) 评论(0) 推荐(0) 编辑
摘要: UIView.animateWithDuration(0.5, delay: 0.0, usingSpringWithDamping: 0.3, initialSpringVelocity: 0.0, options: UIViewAnimationOptions.CurveEaseInOut, a 阅读全文
posted @ 2017-01-05 17:22 蓝天下的田埂上 阅读(1678) 评论(0) 推荐(0) 编辑
摘要: 开发工具带的swift2.3,3.0的朋友们改改语法吧! 首先要有一个UIimageview然后: 我是声明了一个全局的UIVisualEffectView private var effectView: UIVisualEffectView! let blur = UIBlurEffect(sty 阅读全文
posted @ 2017-01-05 16:02 蓝天下的田埂上 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: func selctAll() { idArr.removeAll() for var i = 0; i<sellingArr.count; i++ { let path: NSIndexPath = NSIndexPath(forRow: i, inSection: 0) self.tableVi 阅读全文
posted @ 2017-01-05 15:53 蓝天下的田埂上 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 效果图: 首先要实现这句tableView.setEditing(true, animated: true)才能弹出左侧的小圆圈 然而在oc中tableview删除的写法百度一下很常见但是swift中包的很严实: override func tableView(tableView: UITableV 阅读全文
posted @ 2017-01-05 15:40 蓝天下的田埂上 阅读(1571) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier { if ([extensionPointIdentif 阅读全文
posted @ 2017-01-05 15:27 蓝天下的田埂上 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 最近呢把我的几个混编项目,和swift项目做了一个升级。那么今天就给大家分享一下遇到的问题和解决的办法。 首先那肯定的升级Xcode啦,我2015年的时候用的一直是Xcode7.1,电脑系统是OSX 10.10,要想升级Xcode8.0以上系统也要升级到10.11以上,这个他会提示的。这c哥(我的自 阅读全文
posted @ 2017-01-05 14:27 蓝天下的田埂上 阅读(2852) 评论(0) 推荐(0) 编辑