Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can to disable Segue ? (use CustomCamera) #182

Open
shanchieh opened this issue Aug 24, 2015 · 2 comments
Open

How can to disable Segue ? (use CustomCamera) #182

shanchieh opened this issue Aug 24, 2015 · 2 comments

Comments

@shanchieh
Copy link

When I use CustomCamera then how can I to disable Segue ?

@shanchieh
Copy link
Author

The workaround:

  • (instancetype) initWithDelegate:(id)delegate cameraView:(id)camera
    {
    self = [super init];

    if ( self ) {
    _processingPhoto = NO;
    _deviceOrientation = UIDeviceOrientationPortrait;
    if ( delegate )
    _delegate = delegate;

    if ( camera )
        [self setCustomCamera:camera];
    
    [self setUseCameraSegue:NO];  <--- Set to NO
    
    [self setTintColor:[UIColor whiteColor]];
    [self setSelectedTintColor:[UIColor cyanColor]];
    

    }

    return self;
    }

@danielebogo
Copy link
Owner

@shanchieh try to take a look to the example project or the readme file, looking for the method openCameraWithoutSegue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants