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

浙公网安备 33010602011771号