2016年3月6日
摘要: #import "ViewController.h" @interface ViewController ()<UIScrollViewDelegate> @property (strong, nonatomic) UIScrollView *scrollView; @property (stron 阅读全文
posted @ 2016-03-06 21:11 学东哥哥 阅读(558) 评论(0) 推荐(0)
  2016年3月5日
摘要: 1.如果UIScrollView无法滚动,可能是以下原因: 1)没有设置contentSize 2)scrollEnabled = NO 3)没有接收到触摸事件:userInteractionEnabled = NO等 2.UIScrollView的常见属性: @property(nonatomic 阅读全文
posted @ 2016-03-05 15:41 学东哥哥 阅读(352) 评论(0) 推荐(0)
  2016年3月4日
摘要: #import "CXDView.h" @interface CXDView () //动态图 @property (strong, nonatomic) UIImageView *loadingImageView; //提示文字 @property (strong, nonatomic) UILa 阅读全文
posted @ 2016-03-04 21:18 学东哥哥 阅读(995) 评论(0) 推荐(0)
  2016年3月3日
摘要: //基类:通过该类创建自定义导航控制器 #import "CXDNavigationController.h" #import "UIColor+Extension.h"//设置颜色的工具类 @interface CXDNavigationController () @end @implementa 阅读全文
posted @ 2016-03-03 20:52 学东哥哥 阅读(246) 评论(0) 推荐(0)
摘要: #import "CXDSideMenuController.h" #import "AllControllerDispatchTool.h" #import "SideHeaderView.h" #import "Masonry.h" #import "LoginViewController.h" 阅读全文
posted @ 2016-03-03 20:43 学东哥哥 阅读(1107) 评论(0) 推荐(0)
摘要: #import "CXDLaunchingViewController.h" #import "Masonry.h" //自动适配类 #import "HttpTool.h" //网络请求工具类 #import "HttpRequestMacro.h" //网络请求参数 #import "AllCo 阅读全文
posted @ 2016-03-03 20:37 学东哥哥 阅读(1240) 评论(0) 推荐(0)
摘要: ViewController.m 构建大体框架;添加按钮是视图;通过模型属性给商品视图中的控件赋值数据 #import "ViewController.h" #import "ShopsView.h" #import "ShopModel.h" @interface ViewController ( 阅读全文
posted @ 2016-03-03 18:47 学东哥哥 阅读(434) 评论(0) 推荐(0)
  2016年3月2日
摘要: 1. 九宫格计算思路(主要就是控件位置(x/y)的改变) 1.1利用控件的索引index(该父控件中子控件的个数)计算出控件所在的行号和列号 1.2利用列号计算控件的x值 = 行号 *(子控件的宽度 + 间距) 1.3利用行号计算控件的y值 = 列号 *(子控件的高度 + 间距) /* 清除超过该V 阅读全文
posted @ 2016-03-02 19:20 学东哥哥 阅读(406) 评论(0) 推荐(0)
摘要: 1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @property (strong, nonatomic) UIButton *btn; 6 7 @end 8 9 @implementation ViewContro 阅读全文
posted @ 2016-03-02 17:24 学东哥哥 阅读(11695) 评论(0) 推荐(0)
摘要: 1 #import "ViewController.h" 2 #import <CoreText/CoreText.h> 3 @interface ViewController () 4 5 @property (strong, nonatomic) UILabel *label; 6 7 @pro 阅读全文
posted @ 2016-03-02 16:06 学东哥哥 阅读(1057) 评论(0) 推荐(0)