4 Comments

  1. 文章写得很棒。
    虽是为说明问题,但文中的单例定义无法避免用 [Printer alloc]; 创建多个对象。 

    1. Author

      的确是无法避免多个对象得创建,不过这应该是Objective C语言得特性:方法无法隐藏。就像NSBundle,应该是只用mainBundle。所以只能写个注释:“Danger, do not call this method, otherwise you will be fired.”

  2. I have to get across my respect for your kindness supporting persons that require help on your concern. Your very own dedication to passing the solution up and down ended up being exceptionally functional and has usually allowed ladies much like me to attain their aims. Your amazing invaluable tutorial implies much to me and even further to my office workers. Many thanks; from all of us.

Leave a Reply

Your email address will not be published. Required fields are marked *