how to block a superclass method to be called to a subclass

后端 未结 5 1709
情歌与酒
情歌与酒 2021-01-19 03:37

I\'m extending the functionality of a class with a subclass, and I\'m doing some dirty stuff that make superclass methods dangerous (app will hang in a loop) in the context

5条回答
  •  暖寄归人
    2021-01-19 03:55

    This article explains how to create private variables in Objective C. They aren't truly private, but from what I read, the compiler will throw a warning if you try to call them from the subclass.

提交回复
热议问题