Я работаю с приложением, где у меня есть вид коллекции (Родительский взгляд) и SWReveal'stable view. когда я выбираю строку в виде таблицы и закрываю контроллер представления Swreveal. В родительском представлении доступны все данные, кроме вида коллекции. Вид коллекции становится нулевым. Вот мой кодCollection view Null
Родитель view.h
#import <UIKit/UIKit.h>
#import "MyNotificationsViewController.h"
#import "NotesandReminders.h"
#import "Cell.h"
#import "SWRevealViewController.h"
@interface TimeTableViewController : UIViewController <UICollectionViewDataSource, UICollectionViewDelegate,MJSecondPopupDelegate,UIAlertViewDelegate>
{
UIPopoverController *popoverController;
// IBOutlet UICollectionView *collectionData;
}
@property (nonatomic, retain) IBOutlet UICollectionView *collectionData;
Родитель вид .m
-(void)TestMethod
{
NSLog(@"taggg %d ",tag);
NSLog(@"indexxx %@",indexPathsss);
NSLog(@"eht collection data %@",collectionData);
// [self ChangeCells];
}
SwREvel view controller .h
#import <UIKit/UIKit.h>
#import "LearningSearchCell.h"
#import "TimeTableViewController.h"
#import "AppDelegate.h"
@interface LearningSearchController : UIViewController<UITableViewDataSource,UITableViewDelegate>
@property(strong,nonatomic)TimeTableViewController *TimeObj;
@property(nonatomic,assign)AppDelegate *AppObj;
@end
SwReveal вид controller.M
-(void)viewWillDisappear:(BOOL)animated
{
_TimeObj=[TimeTableViewController alloc];
[_TimeObj TestMethod];
//from here i call the Test method of parent view controller... i am getting all values except the collection view becomes null
}
Я даже попытался создать свойства и sysnthesized его .. все еще null