摘要:
#import "ViewController.h" #import "Student.h"//首先需要新建一个模型,继承自NSObject的类 Student; @interface ViewController ()<NSXMLParserDelegate> //声明变量 @property ( 阅读全文
摘要:
1 UIScrollView 的使用 1.1 UIScrollView的使用需要设置 滚动的范围、偏移量两个属性 contentSize 、contentOffset 1.2 接受代理和 指定代理 UIScrollViewDelegate 滚动过程的方法 - (void)scrollViewDidS 阅读全文
摘要:
1 初始化 cell的方法中 - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier; 其内部控件的frame给CGRectZero 并且将cell内部 阅读全文
摘要:
1 创建UITableView _tableView = [[UITableView alloc] initWithFrame:[[UIScreen mainScreen] bounds] style:UITableViewStylePlain]; 可以设置分割线样式 和颜色 _tableView. 阅读全文
摘要:
1 集合视图的创建 1.1 必须要先初始化一个 布局 self.layout = [[UICollectionViewFlowLayout alloc] init]; (或者自己自定义的布局) 1.2 再初始化集合视图本身 self.collectionV = [[UICollectionView 阅读全文