【发布时间】:2011-09-23 15:33:41
【问题描述】:
您好,我有 ImagePickerViewController,我需要增加单元格的高度,它看起来像 tableview,我需要增加 imagePickerviewController 的单元格高度。
I hope every one can understand my question.
i am attaching the picture
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Add the navigation controller's view to the window and display.
UIImagePickerController *albumPicker = [[UIImagePickerController alloc]init];
[albumPicker setDelegate:self];
[albumPicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
[albumPicker setContentSizeForViewInPopover:CGSizeMake(300, 700)];
[self.window addSubview:albumPicker.view];
[self.window makeKeyAndVisible];
return YES;
}
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
UINavigationItem *ipcNavBarTopItem;
// add done button to right side of nav bar
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:@"Photos"
style:UIBarButtonItemStylePlain
target:self
action:@selector(saveImages:)];
UINavigationBar *bar = navigationController.navigationBar;
[bar setHidden:NO];
ipcNavBarTopItem = bar.topItem;
ipcNavBarTopItem.title = @"Photos";
ipcNavBarTopItem.rightBarButtonItem = doneButton;
}
对于给定的图片这是一个 UIImagePicker 我需要增加它的单元格高度。
我试试运气。谁能帮帮我。
【问题讨论】:
标签: iphone objective-c ipad