- 博客(5)
- 收藏
- 关注
原创 设置字符串中某一字为不同的颜色
var newCreateData:NSMutableAttributedString! let str = zan + cai newCreateData = NSMutableAttributedString(string: str) newCreateData.addAttribute(NSForegr
2016-05-20 13:47:23 621
原创 设置导航栏的标题 背景颜色和字体大小
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName:UIColor.blueColor(),NSFontAttributeName:UIFont .systemFontOfSize(40)];
2016-05-20 12:08:37 812 1
翻译 swift 调用相机和相册的demo
//// demo.swift// 相机demo//// Created by CmyLove on 16/5/3.// Copyright © 2016年张金良. All rights reserved.//import Foundationimport UIKitclass Enterp
2016-05-13 10:30:37 5699 1
原创 textVIew 在输入时 设置行数并且自适应高度 上移动
1.首先设置textView的frame 根据视图的 func textViewDidChange(textView: UITextView) { //允许最高的高度的行数 maxHeight = 72 //frame设置 fram = textView.frame
2016-05-13 09:57:06 2501
原创 动态监听键盘高度调整文本输入框
//自定义键盘key事件 func addCustomKeyboardEvent() { NSNotificationCenter.defaultCenter().removeObserver(self) NSNotificationCenter.defaultCenter().addObserver(self, selector: "
2016-05-10 08:58:25 326
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人