1.Nslog日志打印
#ifdef DEBUG // 调试
#define CZLog(...) NSLog(__VA_ARGS__)
#else // 发布
#define CZLog(...)
#endif
2.自定义导航栏后实现滑动返回功能
self.interactivePopGestureRecognizer.delegate=nil;
3.字符串拼接
NSString *imagename=[NSString stringWithFormat:@"new_feature_%ld",indexPath.row+1];
4.UICollectionViewController属性
self.collectionView.pagingEnabled=YES;//设置分页
self.collectionView.bounces=NO;//设置没有弹性
self.collectionView.showsHorizontalScrollIndicator=NO;//设置水平滚动条隐藏
5.获取系统版本号NSString *currentversion=[NSBundle mainBundle].infoDictionary[@"CFBundleVersion"];