1. 例一 类是一种类型,内建类型(int,float)也是一种类 结果 所以,3.0中统一了,类是类型,int是一种类型,类型也是一种类型。 例二:一切皆对象 以上,函数是对象 运行结果: 以上,类也是对象 例三:关于“self” 首先,方法是类属性,不是实例属性。类中的方法有self,self表 ...
分类:
其他好文 时间:
2017-01-15 07:36:11
阅读次数:
212
root@xcc-VirtualBox:/home/xcc# docker --helpUsage: docker [OPTIONS] COMMAND [arg...] docker [ --help | -v | --version ]A self-sufficient runtime for c ...
分类:
其他好文 时间:
2017-01-15 00:30:48
阅读次数:
256
一. MJRefresh的类解释. 1.MJRefreshComponent 所有刷新控件的基类别.(component: 成分,组件) 2.MJRefreshNormalHeader 默认的下拉刷新控件 3.MJRefreshAutoNormalFooter 默认的上拉刷新控件 下拉刷新控件自适应 ...
分类:
其他好文 时间:
2017-01-14 18:39:48
阅读次数:
291
字典 -> 自定义对象: self setValuesForKeysWithDictionary:<#(nonnull NSDictionary<NSString *,id> *)#> 自定义对象 -> 字典: Person *p = [[Person alloc] init]; p.name = ...
分类:
其他好文 时间:
2017-01-14 13:44:55
阅读次数:
205
webView加载html代码时,使用webView自带的 scalesPageToFit 可以解决图片所带来的超过屏幕问题;但是,所带来的问题就是文字变小了,怎样让图片边小,并且文字还是原来html里大小? 只需加上一段代码就OK。 [self.webView loadHTMLString:[NS ...
分类:
Web程序 时间:
2017-01-14 12:40:01
阅读次数:
299
一.只调用一次计时器方法: //不重复,只调用一次。timer运行一次就会自动停止运行 myTimer = [NSTimer scheduledTimerWithTimeInterval:1.5 target:self selector:@selector(function:) userInfo:n ...
分类:
移动开发 时间:
2017-01-14 12:22:26
阅读次数:
199
对于在UIView上,是不能跳转的,所以我们通常要借助UIViewController,但经常会出现UIViewController没被加载的情况。这时就会报这个错。 解决方法: viewCon = (UIApplication.shared.keyWindow?.rootViewControlle ...
UITextView继承自UIScrollViewUITextView可以展示多行文字控制上下左右缩进 myTextField.textContainerInset = UIEdgeInsetsMake(10, 30, 10, 20)滑动使某区域文字可见 //移动到最前面 self.myTextVi... ...
分类:
其他好文 时间:
2017-01-14 11:09:50
阅读次数:
186
日期比较函数 记录下 Comparing date in Swift ...
分类:
编程语言 时间:
2017-01-14 11:02:07
阅读次数:
165
在使用visual studio 2013启动self host webapi时候碰到下面的错误: 详细错误信息如下: HTTP could not register URL http://+:86/. Your process does not have access rights to this ...
分类:
Web程序 时间:
2017-01-14 09:31:28
阅读次数:
281