UIButtonTypeSystem is not defined in iOS 6
if I put the following code will crash the app ?
if(appSetting.iOSVersion>=7){
photo = [UIButton buttonWithType:UIButtonTypeSystem];
}else{
photo = [UIButton buttonWithType:UIButtonTypeRoundedRect];
}
How to code to to check if UIButtonTypeSystem defined and prevent crashing?