Kunal  Gautam
What happens when you invoke a method on a nil pointer in iOS?
By Kunal Gautam in Learn iOS Programming on Dec 20 2013
  • Sourabh Sharma
    Jun, 2016 27

    A message sent to a nil object is perfectly acceptable in Objective-C, it's treated as a no-op. There is no way to flag it as an error because it's not an error, in fact it can be a very useful feature of the language.

    • 0
  • Munesh Sharma
    May, 2014 2

    It returns 0, nil, a structure filled with 0s, etc.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS