Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Chapter 12 - Swift - Outlets not declared using "weak"

[Book: Beginning iPhone development with Swift - Chapter 12]


I was wondering why the outlets that are declared for the "FirstViewController" are not declared using the "weak" keyword i.e.

@IBOutlet var officerLabel: UILabel!

as opposed to:

@IBOutlet weak var officerLabel: UILabel!

... which I assumed was always necessary to avoid a strong reference cycle?

Have I misunderstood something about IBOutlets?

Any help is much appreciated.  Thanks in advance

Sign In or Register to comment.