我正在尝试在横向模式下使用 AFOpenFlowView,但我得到一个黑色条纹,就好像框架没有越过状态栏,或者更好的是,没有越过状态栏处于纵向模式的框架。
这是我正在使用的代码:
CGRect applicationFrame = [[UIScreen mainScreen] bounds];
AFOpenFlowView *af = [[AFOpenFlowView alloc] initWithFrame:CGRectMake(0, 0, applicationFrame.size.height, applicationFrame.size.width)];
[af setBackgroundColor:[UIColor whiteColor]];
NSString *imageName;
for (int i = 0; i < 9; i++) {
imageName = [[NSString alloc] initWithFormat:@"picture_%d.png", i];
[af setImage:[UIImage imageNamed:imageName] forIndex:i];
[imageName release];
}
[af setNumberOfImages:9];
[af setViewDelegate:self];
[self setView:af];
[af release];
这是显示发生了什么的图像: