Has anybody tried Apple's sample code PhotoScroller on iPad. I am getting a few errors, I guess it's due to the fact that the used libraries are iOS 4.0 only.
Any help would be appreciated.
Errors that I am getting:
error: request for member 'contentScaleFactor' in something not a structure开发者_如何学Python or union on :: imageView.contentScaleFactor = 1.0;
error: incompatible types in initialization and warning: 'UIScreen' may not respond to '-scale' on :: CGFloat maxScale = [[UIScreen mainScreen] scale];
Those are both iOS 4.0 specific things that help support the iPhone 4's retina display. Since you aren't building for iOS 4 or the iPhone 4, you can safely remove those calls or replace them with the value 1.0.
精彩评论