title: iOS, Use struct in Objective C, struct values not assignable from super view
body: <p>I am trying to use a struct to store three values as a unit so to speak. I am getting an error: "<code>Expression not assignable</code>" when I try to assign values to the struct's values from the object's super view.</p>
  
  <p>Anyone know why this is?</p>
  
  <p>in my class's .h file I have defined the struct and a property</p>
  
  <pre><code>@interface MyClass : UIView
  
  {
      struct customStruct {
          float a;
          float b;
          float c;
      };
  
  }
  
  @property (assign, nonatomic) struct customStruct myStruct;
  </code></pre>
  
  <p>from the super view I try to assign a value and I get an error: "<code>Expression not assignable</code>" </p>
  
  <pre><code>object.myStruct.a = someValue;
  </code></pre>