03 2017 档案

摘要:图中是tableView,点击cell,传model(包括点赞数等数据) 在下一页面修改了点赞数之后,同时修改model的点赞数(该model的地址还是一开始传进来的那个) 返回上层页面时执行 - (void)viewWillAppear:(BOOL)animated { //刷新页面 [self. 阅读全文
posted @ 2017-03-15 16:33 justqi 阅读(358) 评论(0) 推荐(0)
摘要:#import "UIView+AutoLayout.h" @property (nonatomic, weak) UIImageView *noDataView; - (UIImageView *)noDataView { if (!_noDataView) { // 添加一个"没有数据"的提醒 UIImageView *noDataView = ... 阅读全文
posted @ 2017-03-12 13:13 justqi 阅读(5278) 评论(0) 推荐(0)
摘要:原价,现价分别是连个label。这两个label不能直接限制死他们的宽度,因为他们的宽度不确定,而由于lable的特殊性,不设置它的宽度约束时,宽度取决于文字的内容,所以两个lable的约束设置好一些必要的约束即可,不用约束完整(特指宽度)。 对于有横线的lable使用自定义lable,在lable 阅读全文
posted @ 2017-03-12 12:45 justqi 阅读(427) 评论(0) 推荐(0)
摘要:一.右边两个图标:直接添加两个UIBarButtonItem,其中各自添加UIButton,然后再设置button的图片,为了方便,使用分类自定义,UIBarButtonItem+DQCategory.h 二.左边加四个UIBarButtonItem,其中各自添加自定义的view,设置好xib的宽高 阅读全文
posted @ 2017-03-10 23:52 justqi 阅读(1756) 评论(0) 推荐(0)
摘要:检查原因1:是否已经注册cell [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([SendTeachNotiTableViewCell class]) bundle:nil] forCellReuseIdent 阅读全文
posted @ 2017-03-08 15:26 justqi 阅读(650) 评论(0) 推荐(0)
摘要:UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"验证成功" message:@"2秒自动进入商城,欢迎选购" preferredStyle:UIAlertControllerStyleAlert]; // UIAlertController *alertCont... 阅读全文
posted @ 2017-03-01 20:29 justqi 阅读(185) 评论(0) 推荐(0)