--
---
You received this message because you are subscribed to the Google Groups "RubyMotion - Ruby for iOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubymotion+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@interface MainTabBarController : UITabBarController<UIActionSheetDelegate>
and this has 5 views coming off of it. One of them is:
@interface CameraViewController : UIViewController <UIImagePickerControllerDelegate>
which has this:
-(void)takePhoto {
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
#if TARGET_IPHONE_SIMULATOR
imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
#else
imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
#endif
imagePickerController.editing = YES;
imagePickerController.delegate = (id)self;
[self presentModalViewController:imagePickerController animated:YES];
}
In the obj-c version, when someone taps the camera tab, the camera comes up full screen. When I just add UIImagePickerController as one of the tabs, the tab bar at the bottom stays and the camera takes up the rest of the screen.
Does that make sense?