Closed rahadurr closed 4 years ago
I am testing this camerakit-ios library with Objective-C, but unfortunately i am unable to create CKFPhotoSession object it's showing compile time error on Xcode.
Yes
Xcode Version 11.3.1 (11C504)
CameraKit Version: v1.2.1
iOS Device: Simulator (iPhone 11 Pro Max)
iOS Version: 13.3
(Write your steps here:)
Follow installation guide for Objective-C
Import CameraKit_iOS in to ViewController.h Header file
#import <UIKit/UIKit.h>
@import CameraKit_iOS;
@interface ViewController : UIViewController
@end
2. Add flowing code into ViewController.m file ```objectivec #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; CKFPhotoSession *ckPhotoSession = [[CKFPhotoSession alloc] init]; // Error: 'init' is unavailable CKFPreviewView *ckfPreviewView = [[CKFPreviewView alloc] initWithFrame:self.view.bounds]; *ckfPreviewView.session = ckPhotoSession; // Error: Assigning to 'CKFSession' from incompatible type 'CKFPhotoSession *__strong' } @end
CKFPhotoSession must allow to create an Objective-C object. Unfortunately it's not allow me to create any Session Object.
Compile tine error
ohh my bad found the solution:
CameraKitDemo-Objc
Is this a bug report?
I am testing this camerakit-ios library with Objective-C, but unfortunately i am unable to create CKFPhotoSession object it's showing compile time error on Xcode.
Have you read the Contributing Guidelines?
Yes
Environment
Xcode Version 11.3.1 (11C504)
CameraKit Version: v1.2.1
iOS Device: Simulator (iPhone 11 Pro Max)
iOS Version: 13.3
Steps to Reproduce
(Write your steps here:)
Follow installation guide for Objective-C
Import CameraKit_iOS in to ViewController.h Header file
@import CameraKit_iOS;
@interface ViewController : UIViewController
@end
Expected Behavior
CKFPhotoSession must allow to create an Objective-C object. Unfortunately it's not allow me to create any Session Object.
Actual Behavior
Compile tine error
Reproducible Demo
rahadurr/HelloCamera