Finding a bug using Xcode - attempt to insert nil value

前端 未结 5 1481
温柔的废话
温柔的废话 2021-02-10 15:17

I am getting a random bug in my app, which is causing it to crash. The problem I am facing is XCode doesn\'t tell me where the crash is happening only the below information. Can

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-10 15:27

    Try this:

    if([myDictionary objectForKey:@"string"]!= nil && [myDictionary objectForKey:@"string"]!= Nil) { }
    

提交回复
热议问题