1.UITabbarController 在alloc]init] 的时候已经完成viewdidload了。
2.接口返回的数据类型不定,需要转换,例如,
//要使用
NSString *orderSentNum = [NSString stringWithFormat:@"%@",responseObject[@"data"][@"orderSentNum"]];
//不能使用
NSString *orderSentNum = responseObject[@"data"][@"orderSentNum"];
3.合理使用masonry线性布局,伸缩优先级
4.xcode模板路径/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Source
5.代码块路径~/Library/Developer/Xcode/UserData/CodeSnippets
6.新建字典使用
NSDictionary *param = [NSDictionary dictionaryWithObjectsAndKeys:type,@"type",page,@"page",pageCount,@"pageSize", nil];可以避免value为空的情况
网友评论