iOS_Causion

1.分类里面的属性,必须单独实现get set方法.

2.weak 属性,赋值给成员变量,先创建一个对象再赋值.

Snip20191126_4

Snip20191126_5

3.长屏

1
2
3
4
5
6
7
#define HYIsFullScreenIPhone ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? ([[UIScreen mainScreen] currentMode].size.height / [[UIScreen mainScreen] currentMode].size.width) > 2.16 : NO)

if (HYIsFullScreenIPhone) {
titlesView.y = XMGTitilesViewY + 25;
} else {
titlesView.y = XMGTitilesViewY;
}

4.验证app,否则打不开

5.方法不调用,检查方法名.

6.__NSDictionaryM storeInfo 说明字典没有转成模型呢!

7.按钮按了不好使,看看传的方法对不对.

8. JSONModel,字典数组必须是mutable

NSMutableDictionary *dict2 = [content objectForKey:@”storeInfo”]; dict2是nil,

9.UI颜色不对,可能是添加了bottomView或者是分割线alpha比较小变为白色.

10.复制完按钮要清除拖线的方法.

11.textfield 代码设置文字不会触发监控代理方法