摘要: 本文转载至:http://blog.csdn.net/k12104/article/details/8537695On iPad, UIImagePickerController must be presented via UIPopoverController 可以用以下方法来判断设备的类型选择不同的Controllerif(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone){// We are using an iPhoneUIActionSheet*alertSheet =[[UIActionSheet alloc] initWi. 阅读全文
posted @ 2013-08-28 19:14 天牛 阅读(831) 评论(0) 推荐(0)
摘要: 本文转载至:http://blog.csdn.net/chang6520/article/details/7921181TodoViewController *contentViewController = [[TodoViewController alloc] init];UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:contentViewController];navigationController.contentSizeF 阅读全文
posted @ 2013-08-28 19:12 天牛 阅读(475) 评论(0) 推荐(0)
摘要: 设置源 + availableMediaTypesForSourceType: // 指定源可用的媒体种类 (指定源本人认为应当是Camera、PhotosLibaray) .mediaTypes 会指定的更详细。 .sourceType 结构UIImagePickerControllerSourceTypeenum {UIImagePickerControllerSourceTypePhotoLibrary,// 设备的图片库UIImagePickerControllerSourceTypeCamera,// 设备的摄像头UIImagePickerControllerS... 阅读全文
posted @ 2013-08-28 10:49 天牛 阅读(298) 评论(0) 推荐(0)