objective-c를 사용하여 고정 세로 방향 응용 프로그램을 사용하고 이미지 탐색을 위해 MWPhotoBrowser를 열 때 버튼 클릭이 있습니다. 이제 세로 모드에서는 잘 작동하지만 세로 회전 모드와 가로 모드 모두에서 MWPhotoBrowser를 사용하여 전화를 회전 시키려합니다. 내가 그렇게 할 수있는 방법, 여기에 내 코드입니다 :세로 방향 응용 프로그램에서 mwphotobrowser 회전 사용 가능
- (void) prepareForPhotoAlbum:(NSArray*)photoObjs {
self.photoURLArrays = [[NSMutableArray alloc]init];
for(int i=0 ; i<photoObjs.count ; i++){
NSDictionary* dictOfImageObj = photoObjs[i];
[self.photoURLArrays addObject:[MWPhoto photoWithURL: [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@",ServerTopicImageURL,dictOfImageObj[@"filename"]]]]];
}
MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
// Set options
browser.displayActionButton = YES;
browser.displayNavArrows = NO;
browser.zoomPhotosToFill = YES;
[browser setCurrentPhotoIndex:0];
browser.wantsFullScreenLayout = YES;
[self.navigationController pushViewController:browser animated:YES];
[browser showPreviousPhotoAnimated:YES];
[browser showNextPhotoAnimated:YES];
}