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