摘要:
项目中接入分享,总要设置白名单,QQ,QQ空间,微信,新浪微博 阅读全文
摘要:
A --> B 页面传值 数据从A 的页面上拿到,再传给B页面,显示到指定位置 假设 要从 A 页面 获取到 名字,数量 一、在B 页面 .h 定义 将name,number 放到 字典里 @property (nonatomic,strong) NSString *name; @property 阅读全文
摘要:
一、设置分段导航器 在ViewController。m里写 - (void)viewDidLoad { [super viewDidLoad]; [self creatView]; } // 设置页面 - (void)creatView{ UISegmentedControl *seg = [[UI 阅读全文
摘要:
让 View,ImageView整体有点击效果,和 Button一样 UITapGestureRecognizer *uitgp = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(ddd)]; [_tm1Vi 阅读全文
摘要:
1、确定CollectionViewCell 上要显示的内容,通常是图片(imageView)和文字(label 或者 text) 2、创建 CollectionViewCell 继承 UICollectionViewCell 3、在.m 文件夹里 定义 imageView 和 label,imag 阅读全文
摘要:
1、给每个子控制器添加导航栏 /** * 初始化一个子控制器 * * @param child 需要初始化的子控制器 * @param title 标题 * @param imageName 未选中图标 * @param selectedImageName 选中的图标 */ - (void)setu 阅读全文
摘要:
一、创建窗口 self.window = [[UIWindow alloc] init]; self.window.frame = [UIScreen mainScreen].bounds; // 设置窗口的根控制器 self.window.rootViewController = [[UITabB 阅读全文