ViewController.h
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController<UICollectionViewDataSource,UICollectionViewDelegate>
@property (weak, nonatomic) IBOutlet UIScrollView *mainScrollView;
@property (weak, nonatomic) IBOutlet UICollectionView *NewPrciousCltnVw;
@property (weak, nonatomic) IBOutlet UICollectionView *NewFashionCltnVw;
+ (NSString *)stringVariable;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *sidebarButton;
+ (NSString *)proVariable;
@property (weak, nonatomic) IBOutlet UIScrollView *imageSlider;
@property (weak, nonatomic) IBOutlet UILabel *lblNewArrivals;
@property (weak, nonatomic) IBOutlet UILabel *lblFeaturedProducts;
@property (weak, nonatomic) IBOutlet UILabel *roundedoffers;
@property (weak, nonatomic) IBOutlet UIView *lbloffers;
@property (weak, nonatomic) IBOutlet UIScrollView *offersSlider;
@end
这是我的故事板
这里ViewController是SWRevealViewController的'前视图',而Menu ViewControler是'后视图'。如果我连续使用push到SecondViewController并返回ViewController超过3分钟我的应用程序崩溃了。有人帮我解决了这个问题并提前感谢