开发者

AFOpenFlow Image Sizes on iPad

I have an iPad application with an AFOpenFlowView implemented in it. In my nib file, I made the OpenFlowView the width of the ipad (768 pixels) and made it the proper height, however, for some reason my images are showing up with the sides cut off. I'm trying to get the images to fit the width of the screen (they're all 768 width) in portrait mode. I was able to do开发者_C百科 this on the iPhone version (I made the images with a width of 320) and it worked fine. Any help on getting these images to fit the width of the screen and not get their sides cut off would be much appreciated!

PS I've tried making the openflow width exceed the bounds of the ipad (in the nib file) to see if the sides would show, and it did not work.


I played around with the values in the AFOpenFlowConstants.h file.

These settings worked OK for me but you can tweak them further:

    #define COVER_SPACING 80
    #define CENTER_COVER_OFFSET 140
    #define SIDE_COVER_ANGLE .15
    #define SIDE_COVER_ZPOSITION -40
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜