Zhou Hao Zhou Hao - 2 years ago 102
Swift Question

Should I inherit from NSObject in Swift?

I found a good discussion here, but I have one more question:

I know Objective-C implement reference counter through NSObject. Is ARC still supported if NSObject is not a base class?

Answer Source

No, the Swift language has it's own mechanism for automated reference counting that is not reliant on any particular base class. Check out the documentation here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download