开发者

Photoscroller for iPad

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:

  1. error: request for member 'contentScaleFactor' in something not a structure开发者_如何学Python or union on :: imageView.contentScaleFactor = 1.0;

  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜