iOS には、以下のように事前に宣言されたプロパティがあります。
@property(nonatomic, readonly) UIInterfaceOrientation interfaceOrientation;
@property(nonatomic) UIInterfaceOrientation interfaceOrientation;
プロジェクト用に変更してからinterfaceOrientation
、クラスの別のコントローラー メソッドの " " 変数に別の値を割り当てることはできますか?
既存のプロパティを変更すると問題が発生しますか?
また、グーグルで、 @property(nonatomic) が「readonly」キーワードで宣言されていない場合、デフォルトで読み書き可能であることをどこかで読みました。このルールは開発者によって定義されたプロパティにのみ適用され、事前定義されたプロパティには適用されませんか?