摘要: //设置textfile的Placeholder的颜色和字体大小 nameText.attributedPlaceholder = NSAttributedString.init(string: "用户名", attributes: [NSForegroundColorAttributeName: 阅读全文
posted @ 2016-11-02 12:07 zuidap 阅读(320) 评论(0) 推荐(0)
摘要: 1、安装 RVM RVM:Ruby Version Manager,Ruby版本管理器,包括Ruby的版本管理和Gem库管理(gemset) $ curl -L get.rvm.io | bash -s stable 等待一段时间后就可以成功安装好 RVM。 $ source ~/.bashrc $ 阅读全文
posted @ 2016-10-21 17:13 zuidap 阅读(188) 评论(0) 推荐(0)
摘要: 终端输入 隐藏隐藏文件 defaults write com.apple.finder AppleShowAllFiles -bool true KillAll Finder 显示隐藏文件 defaults write com.apple.finder AppleShowAllFiles -bool 阅读全文
posted @ 2016-10-20 14:14 zuidap 阅读(251) 评论(0) 推荐(0)
摘要: table?.separatorInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0) //设置cell 下边线 位置 table?.separatorStyle = .none //设置cell 下边线类型 cell.selection 阅读全文
posted @ 2016-10-12 15:54 zuidap 阅读(240) 评论(0) 推荐(0)
摘要: 一句话创建banner图,可时时刷新 用到了 SnapKit、SDWebImage两个第三方库 实现步骤 import UIKit typealias BtnBlock = (Int) -> Void //ImagesBlock typealias ImagesBlock = () -> [Stri 阅读全文
posted @ 2016-09-30 15:25 zuidap 阅读(430) 评论(0) 推荐(0)
摘要: swift 原声请求 阅读全文
posted @ 2016-09-12 15:39 zuidap 阅读(3774) 评论(0) 推荐(0)
摘要: //<4> 创建16个UIImageView显示分割以后的小图片 for(int i = 0;i<4;i++) { for(int j = 0;j<4;j++) { UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectM 阅读全文
posted @ 2016-08-19 18:07 zuidap 阅读(609) 评论(0) 推荐(0)
摘要: //MARK:系统跳到应用设置页面 func systemMySet(){ let url = NSURL(string: UIApplicationOpenSettingsURLString) if let url = url where UIApplication.sharedApplicati 阅读全文
posted @ 2016-08-16 16:40 zuidap 阅读(291) 评论(0) 推荐(0)
摘要: let string = "点击注册按钮,即表示您已同意隐私条款和服务协议" let ranStr = "同意" let attrstring:NSMutableAttributedString = NSMutableAttributedString(string:string) let str = 阅读全文
posted @ 2016-08-12 17:11 zuidap 阅读(5899) 评论(0) 推荐(0)
摘要: label 不同颜色 UILabel* noteLabel = [[UILabel alloc] init]; noteLabel.frame = CGRectMake(60, 100, 200, 100); noteLabel.textColor = [UIColor blackColor]; n 阅读全文
posted @ 2016-08-12 10:47 zuidap 阅读(222) 评论(0) 推荐(0)