Note that there are some explanatory texts on larger screens.

plurals
  1. POObjective-c multiple delegates in the same view - ECSlidingViewController
    primarykey
    data
    text
    <p>I started testing <a href="https://github.com/edgecase/ECSlidingViewController/tree/master/ECSlidingViewController" rel="nofollow">ECSlidingViewController</a> and after I tried to access <code>FirstTopViewController</code> I have a big trouble - because in <code>FirstToViewController</code> I already have <a href="http://sourceforge.net/projects/zbar/" rel="nofollow">ZBarReaderDelegate</a> implemented and all examples of delegate are not triggering any method from my delegate.</p> <p>Basically I have this stuff:</p> <h1>FirstTopViewController.h</h1> <pre><code>#import ...MyStuff... #import "UnderRightViewController.h" @interface FirstTopViewController : UIViewController &lt;RightViewDelegate, ZBarReaderDelegate&gt; @property (weak, nonatomic) IBOutlet UITextView *labelTotal; @end </code></pre> <h1>FirstTopViewController.m</h1> <pre><code>#import "FirstTopViewController.h" @implementation FirstTopViewController - (void)setTotalViewController:(UnderRightViewController*)controller didTotalChange:(NSString*)total { //labelTotal.text = total; NSLog(@"I'm here!!! and received %@", total); } </code></pre> <p>From other side I have</p> <h1>UnderRightViewController.h</h1> <pre><code>#import &lt;UIKit/UIKit.h&gt; #import "ECSlidingViewController.h" @class UnderRightViewController; @protocol RightViewDelegate &lt;NSObject&gt; - (void)setTotalViewController:(UnderRightViewController*)controller didTotalChange:(NSString*)total; @end @interface UnderRightViewController : UITableViewController @property (nonatomic, weak) id &lt;RightViewDelegate&gt; delegate; @end </code></pre> <h1>UnderRightViewController.m</h1> <pre><code>#import "UnderRightViewController.h" @interface UnderRightViewController () @end @implementation UnderRightViewController @synthesize delegate; - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [delegate setTotalViewController:self didTotalChange:@"foo"]; } @end </code></pre> <p>I'm trying this entire day solve this puzzle but I never get <code>setTotalViewController</code> fired. </p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload