开发者

Photoscroller for iPad

开发者 https://www.devze.com 2023-01-18 06:21 出处:网络
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.

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

精彩评论

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