iOS Bridge part
This commit is contained in:
@@ -33,6 +33,8 @@ - (void)viewDidLoad {
|
||||
NSString *path = [[NSBundle bundleForClass:[self class]] pathForResource:@"demo" ofType:@"js"];
|
||||
NSString *jsContent = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
|
||||
self.doricContext = [[DoricContext alloc] initWithScript:jsContent source:@"demo"];
|
||||
[self.doricContext callEntity:@"__init__",@{@"width": [NSNumber numberWithFloat:self.view.width],
|
||||
@"height":[NSNumber numberWithFloat:self.view.height]},nil];
|
||||
}
|
||||
|
||||
- (void)test:(UIView *)view {
|
||||
|
Reference in New Issue
Block a user