iOS개발/오류수정
[iOS오류수정] Cannot call value of non-function type 'Bool'
달님개발자
2022. 12. 8. 11:32
반응형
아래와 같은 오류를 만났다.
if playerEntity.isShadowingMode() {
updateVisible_fsn_left_and_rightActionView(isHidden:true)
} else {
updateVisible_fsn_left_and_rightActionView(isHidden:false)
}
오류의 원인은 isShadowingMode는 속성으로 함수가 아닌데 함수로 불러서 그렇다.
var isShadowingMode: Bool {
get {
if repeatListShadowingMode.count > 0 {
return true
}
return false
}
}
OK
if playerEntity.isShadowingMode {
NG
if playerEntity.isShadowingMode() {
반응형