0

When I am using this line of code:

if (context == &KVOContext && keyPath == contentOffsetKeyPath && object as? UIScrollView == scrollView) {
    //...
}

I am getting runtime issue which is:

Simultaneous accesses to 0x7f7eea603fb8, but modification requires exclusive access

I don't know how to solve this. Can anyone give me solution for this?

Ahmad F
  • 30,560
  • 17
  • 97
  • 143
S.Shakir
  • 1
  • 6
  • Possibly Duplicated: https://stackoverflow.com/questions/45415901/simultaneous-accesses-to-0x1c0a7f0f8-but-modification-requires-exclusive-access – Ahmad F May 31 '18 at 12:01
  • No it's different code. – S.Shakir May 31 '18 at 12:03
  • 3
    It doesn't has to be the exact same code, probably you might want to review the answers... – Ahmad F May 31 '18 at 12:05
  • No it doesn't my issue it get issue at context and i don't know how to solve so i ask here. – S.Shakir May 31 '18 at 12:07
  • 1
    Possible duplicate of [Simultaneous accesses to 0x10f10df48, but modification requires exclusive access](https://stackoverflow.com/questions/46422948/simultaneous-accesses-to-0x10f10df48-but-modification-requires-exclusive-access) – VTodorov May 31 '18 at 12:24
  • Possible duplicate of [Simultaneous accesses to 0x1c0a7f0f8, but modification requires exclusive access error on Xcode 9 beta 4](https://stackoverflow.com/questions/45415901/simultaneous-accesses-to-0x1c0a7f0f8-but-modification-requires-exclusive-access) – Jesse May 31 '18 at 14:21

0 Answers0