在.h文件中
@interface MenuViewController : UIViewController<UIAlertViewDelegate>
Run Code Online (Sandbox Code Playgroud)
在.m文件中
@interface TACDIYMenuViewController ()
@end
@implementation TACDIYMenuViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
}
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
return 1;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
return [self.imageViews count];
}
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{ …Run Code Online (Sandbox Code Playgroud) 我正在用php编写一个AJAX页面,它将在完成时回显一段JS代码.虽然JS代码嵌入到HTML页面中,但它不起作用.我怎样才能使它工作?
我怎么比较viewDidLoad和viewDidAppear: