I have a constant with a screen width of up to 320. This is used in several places in my code. I have to change this to accept the value from the current device, and I do not want to touch all of these places. So, I want to define a constant for this with a value:
[[UIScreen mainScreen] bounds].size.width #define kScreenWidth [[UIScreen mainScreen] bounds].size.width
But it gives me a lot of compilation errors. Any clue?
source share