Use of Unresolved Identifier

Discussion in 'iOS Programming' started by jimmason, Aug 27, 2018.

  1. jimmason macrumors newbie

    Joined:
    Sep 2, 2012
    Location:
    Hertfordshire
    #1
    Hi Guys,

    I have this message come up on a couple of lines of my text code, XCODE project, not sure how to resolve / modify code to rectify, any help appreciated.
     
  2. Ubuntu macrumors 68000

    Ubuntu

    Joined:
    Jul 3, 2005
    Location:
    UK/US
    #2
    You should provide a code snippet in order for people to help you (as otherwise we'll have to guess, meaning we won't be as helpful as we can be). That said, the "use of unresolved identifier" typically means that you're trying to refer to a symbol that hasn't been defined.

    For example:

    Code:
    let redColor = UIColor.red
    
    print("\(blueColor)") // Will generate the error you're having
    
    Here's a useful link - hope it helps! https://learnappmaking.com/unresolved-identifier-understanding-xcode/
     

Share This Page