title: Setting BOOL to "YES" in custom delegate
body: <p>I've make a delegate so my two different view controllers can communicate and I'm stuck trying to set a BOOL to YES in my child view controller.</p>
  
  <p><strong>childViewController.h</strong></p>
  
  <pre><code>@protocol pageTwoViewControllerDelegate;
  
  @interface pageTwoViewController : UIViewController {
  UIButton *takePhotoTransition;
  }
  @property (nonatomic, weak) id&lt;pageTwoViewControllerDelegate&gt; delegate;
  
  @end
  
  @protocol pageTwoViewControllerDelegate &lt;NSObject&gt;
  
  - (BOOL)didPushTakePhoto;
  
  @end
  </code></pre>
  
  <p><strong>childViewController.m</strong></p>
  
  <pre><code>...
  - (IBAction)takePhotoTransition:(id)sender {
  
  id&lt;pageTwoViewControllerDelegate&gt; strongDelegate = self.delegate;
  
  if ([strongDelegate respondsToSelector:@selector(didPushTakePhoto)]) {
      strongDelegate.didPushTakePhoto = YES; // ERROR: No setter method for 'setDidPushTakePhoto:' for assignment property
  }
  NSLog(@"Button push recieved");
  }
  </code></pre>
  
  <p>How can I get past this error and set my BOOL to YES when my button is pushed?</p>