문제

I'm working on the future version of my app and want to integrate some iOs6 new classes like UIRefreshControl. I know I can't submit my app with xcode 4.5 yet. So I go back to an xcode < 4.5 and build, but I've got errors because it doesn't know that class.

How can I put conditions in my code in order to by pass building errors and get my code well conditionned for iOs < 6 and iOs >= 6.

I tried several things like :

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_6_0

or

#ifdef _USE_OS_6_OR_LATER

But they don't work... I still get errors.

도움이 되었습니까?

해결책

you can submit with xcode 4.5 as of yesterday. Gold Master Version is able to submit an app

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top