自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

一位iOS同学的博客

一位iOS同学的博客

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除