If() Condition Not getting True <p>I am New in IOS i am facing a problem. I have 3 GMGridViews on my Xib and i got reference in .m file of my ViewControllar Now in Delegates and DataSource Methods when i put Check on it if condition not getting true for 2 GMViewControllars but become true for 1st one. i try isEqual: also instead of " == " Here is my Code</p> <pre><code>#pragma mark GMGridViewDataSource - (NSInteger)numberOfItemsInGMGridView:(GMGridView *)gridView { if (gridView==self.artistFollowingGM) { return 4;//[self.artistFollowingArray count]; }else if (gridView==self.followersGM) { return 5;// [self.membersFollowingArray count]; }else if(gridView==self.repostedGM){ return 10; //[self.repostedArray count]; }else{ return 0; } } </code></pre> <p>Datasource and delegates are same for all then why if is not getting true for 2 GMGrids??</p>