しめ鯖日記

swift, iPhoneアプリ開発, ruby on rails等のTipsや入門記事書いてます

2015-10-14から1日間の記事一覧

SwiftのStored PropertyとComputed Propertyについて整理する

iOS

Stored PropertyとComputed Propertyをちゃんと調べた事がなかったので調査してみました。 Stored Property 下のようなプロパティーです。 class MyClass { let prop1 = "" var prop2 = "" } プロパティー監視 Stored PropertyにはwillSetとdidSetのプロパテ…