hopestar90

Results 7 comments of hopestar90

这么写感觉在某些case会陷入死循环,如果self的superview是nil,view也是nil的情况

我给一个写法~ 但可能没有那么优雅: MAS_VIEW *firstView = self; MAS_VIEW *secondView = view; NSInteger firstLength = 0; NSInteger secondLength = 0; while (firstView) { firstLength++; firstView = firstView.superview; } while (secondView) { secondLength++;...

> 这样? > > ```objc > - (__kindof MAS_VIEW *)mas_closestCommonSuperview:(MAS_VIEW *)view { > MAS_VIEW *closestCommonSuperview = self; > MAS_VIEW *secondViewSuperview = view; > > while (closestCommonSuperview != secondViewSuperview) { >...

> Please, provide actual text of the error instead of a screenshot. Thanks. Hi~ This is the error log: ``` > Task :hermes:buildCMakeRelease[arm64-v8a][libhermes]-2 FAILED C/C++: ninja: Entering directory `/Users/victor.chi/github_hermes_workspace/staging/hermes/Release/3f204a92/arm64-v8a' C/C++:...

> Hi, the Android build relies on a build for the host system, which must already exists. This is necessary because part of the runtime is written in JavaScript and...

> I don't know the details of the Android build, but I think the steps here should work: https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml I do as the doc https://github.com/facebook/hermes/blob/main/.github/workflows/build.yml, the steps are: 1 I...