上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: 方法&&属性: // 监控目前滚动的位置(默认CGPointZero) // 滚动范围的大小(默认CGSizeZero) // 视图在scrollView中的位置(UIEdgeInsetsZero) // 设置协议 // 指定控件是否只能在一个方向上滚动(默认为NO) // 控制控件遇到边框是否反弹 阅读全文
posted @ 2016-10-14 15:55 柳仙慧子 阅读(5302) 评论(0) 推荐(1) 编辑
摘要: 1.init; 2.viewDidLoad; 3.viewWillAppear; 4.viewDidAppear; 5.viewWillDisappear; 6.viewDidDisappear 阅读全文
posted @ 2016-10-14 14:52 柳仙慧子 阅读(126) 评论(0) 推荐(0) 编辑
摘要: contentSize: The size of the content view. 其实就是scrollview可以滚动的区域,比如frame = (0 ,0 ,320 ,480) contentSize = (320 ,960),代表你的scrollview可以上下滚动,滚动区域为frame大小 阅读全文
posted @ 2016-10-14 14:44 柳仙慧子 阅读(10676) 评论(0) 推荐(0) 编辑
摘要: if (array != nil && ![array isKindOfClass:[NSNull class]] && array.count != 0) 阅读全文
posted @ 2016-10-14 09:42 柳仙慧子 阅读(879) 评论(0) 推荐(0) 编辑
摘要: if (_bigUrlArray.count%2==0) {//如果是偶数 a = i*(_bigUrlArray.count/count);//每个线程图片初始数 b = (i+1)*(_bigUrlArray.count/count);//每个线程图片数 }else{//如果是奇数 a = i* 阅读全文
posted @ 2016-10-10 16:37 柳仙慧子 阅读(8812) 评论(0) 推荐(0) 编辑
摘要: 1、在Info.plist中添加NSAppTransportSecurity类型Dictionary。2、在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES 阅读全文
posted @ 2016-09-29 11:20 柳仙慧子 阅读(233) 评论(0) 推荐(0) 编辑
摘要: self.automaticallyAdjustsScrollViewInsets= NO; 阅读全文
posted @ 2016-09-29 09:58 柳仙慧子 阅读(415) 评论(0) 推荐(0) 编辑
摘要: UIImageView 的contentMode这个属性是用来设置图片的显示方式,如居中、居右,是否缩放等,有以下几个常量可供设定:UIViewContentModeScaleToFillUIViewContentModeScaleAspectFitUIViewContentModeScaleAsp 阅读全文
posted @ 2016-09-27 17:17 柳仙慧子 阅读(111) 评论(0) 推荐(0) 编辑
摘要: self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; [self.window makeKeyAndVisible]; DYViewController *vc = [[DYViewControlle 阅读全文
posted @ 2016-09-27 10:08 柳仙慧子 阅读(105) 评论(0) 推荐(0) 编辑
摘要: command+shift+h 阅读全文
posted @ 2016-09-27 09:56 柳仙慧子 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页