//
// ViewController.m
// differentVersions
//
// Created by wusiping on 15/11/21.
// Copyright (c) 2015年 wusiping. All rights reserved.
//
#import "ViewController.h"
#define iOS8 [[UIDevice currentDevice].systemVersion intValue] == 8
#define iOS7 [[UIDevice currentDevice].systemVersion intValue] == 7
#define iOS9 [[UIDevice currentDevice].systemVersion intValue] == 9
// 自定义Log
#ifdef DEBUG
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...)
#endif
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[superviewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
if (iOS8) {
NSLog(@"走流程8");
}else if(iOS7){
NSLog(@"走流程7");
}
}
- (void)didReceiveMemoryWarning {
[superdidReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end