GabrielAlva / Cool-iOS-Camera

A fully customisable and modern camera implementation for iOS made with AVFoundation.
1.3k stars 152 forks source link

Open Camera on Start Up #20

Closed gkrizek closed 8 years ago

gkrizek commented 9 years ago

Hello,

I was wondering if you could show me how to make the camera launch when you first open the app instead of pushing a button to make it come on.

Thanks!

GabrielAlva commented 9 years ago

Hi, You can make the Instance of the CameraSessionView on the AppDelegate's didFinishLaunchingWithOptions function and set it as the root view controller. Let me know if you need more help.

juliabenson commented 9 years ago

i would love to show you but do i have to know how to code?

Julia Benson

On Aug 29, 2015, at 12:52 AM, Gabriel Alvarado notifications@github.com wrote:

Hi, You can make the Instance of the CameraSessionView on the AppDelegate's didFinishLaunchingWithOptions and set it as the root view controller.

— Reply to this email directly or view it on GitHub.

gkrizek commented 9 years ago

I still learning and teaching myself these things as I go.

Could you show me some sample code for that? Thanks!!

GabrielAlva commented 8 years ago

Follow the instructions on the Usage section of the lib. If you would like to display the camera on startup, then just include the code on that same section on the viewDidLoad of the first view controller that gets presented.