本章将来讲解下如何实现拍照的功能

我们需要的实现的效果是 

IOS开发---菜鸟学习之路--(十五)-如何实现拍照功能    IOS开发---菜鸟学习之路--(十五)-如何实现拍照功能

好了 直接开始内容吧

首先我们需要新建一个ViewController

就叫AddPictureViewController

然后选择.h文件进行如下修改

 1 #import <UIKit/UIKit.h>
 2 
 3 @interface AddPictureViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIAlertViewDelegate>
 4 {
 5     UITextView *contenttextview;
 6     UIImageView *contentimageview;
 7     NSString *lastChosenMediaType;
 8 
 9 }
10 @property(nonatomic,retain) IBOutlet UITextView *contenttextview;
11 @property(nonatomic,retain)  IBOutlet   UIImageView *contentimageview;
12 @property(nonatomic,copy)        NSString *lastChosenMediaType;
13 -(IBAction)buttonclick:(id)sender;
14 
15 @end
AddPictureViewController.h

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案