Hi there,
I am using this to detect the Device Type that I am using…
if(Device == DeviceGeneration.iPhone7Plus){
deviceAsInt = 7;
}
However, I am getting the error…
Unsure what to do.???
Hi there,
I am using this to detect the Device Type that I am using…
if(Device == DeviceGeneration.iPhone7Plus){
deviceAsInt = 7;
}
However, I am getting the error…
Unsure what to do.???
Device is a class so this obviously cannot work - what you are looking is (i think) the static property Device.generation
if(Device.generation == DeviceGeneration.iPhone7Plus){
deviceAsInt = 7;
}
you are the man!