Skip to content

mrshih/ASCamera

Repository files navigation

##Installation

pod 'ASCamera', :git => 'https://github.com/mrshih/ASCamera'

##Usage

@property (strong, nonatomic) IBOutlet UIView *cameraView;
@property (nonatomic) ASCamera *camrea;

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.camrea = [ASCamera cameraSingletons];
}

- (void)viewDidLayoutSubviews {
    [self.camrea attachOnLifeView:_cameraView];
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self.camrea start];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [self.camrea stop];
}

About

A delightful iOS Camera Library - Set, Start and Stop

Resources

Stars

Watchers

Forks

Packages

No packages published