代码改变世界

使用xib封装一个自定义view的步骤

2016-12-21 17:09 by supper_Ho, 132 阅读, 0 推荐, 收藏, 编辑
摘要:使用xib封装一个自定义view的步骤 1> 新建一个继承UIView的自定义view,假设类名叫做(MJAppView) 2> 新建一个MJAppView.xib文件来描述MJAppView内部的结构 3> 修改UIView的类型为MJAppView真是类型 4> 将内部的子控件跟MJAppVie 阅读全文

修改了系统自带头文件后,Xcode会报错

2016-12-21 17:06 by supper_Ho, 180 阅读, 0 推荐, 收藏, 编辑
摘要:1.Xcode自带头文件的路径 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Fra 阅读全文

Xib文件的使用

2016-12-21 16:02 by supper_Ho, 139 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

Xib和storyboard对比

2016-12-21 16:01 by supper_Ho, 100 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

instancetype

2016-12-21 15:58 by supper_Ho, 105 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

字典转模型规范化

2016-12-21 15:48 by supper_Ho, 222 阅读, 0 推荐, 收藏, 编辑
摘要:// // MJApp.h // 01-应用管理 // // Created by apple on 14-3-26. // Copyright (c) 2014年 itcast. All rights reserved. // 模型类:用来存放数据的类 #import <Foundation/Fo 阅读全文

用模型取代字典的好处

2016-12-21 15:32 by supper_Ho, 171 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

文本属性Attributes

2016-12-21 11:09 by supper_Ho, 324 阅读, 0 推荐, 收藏, 编辑
摘要:1.NSKernAttributeName: @10 调整字句 kerning 字句调整 2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体 3.NSForegroundColorAttributeName :[UICol 阅读全文

苹果API常用英语名词

2016-12-21 11:07 by supper_Ho, 188 阅读, 0 推荐, 收藏, 编辑
摘要:0. indicating决定 1.in order to 以便 2.rectangle bounds 矩形尺寸 3.applied 应用 4.entirety全部 5.technique 方法 6.truncating 截短 7.wrapping换行 8.string字符串 9.familiar 阅读全文

UITextView

2016-12-21 11:06 by supper_Ho, 99 阅读, 0 推荐, 收藏, 编辑
摘要:1. text: 设置textView中文本 _textView.text = @"Now is the time for all good developers to come to serve their country.\n\nNow is the time for all good deve 阅读全文
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页