小编Laz*_*tch的帖子

未调用UIAlertView clickedButtonAtIndex方法

在.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)

objective-c uialertview ios

1
推荐指数
1
解决办法
5691
查看次数

AJAX PHP回应了js代码,它不起作用

我正在用php编写一个AJAX页面,它将在完成时回显一段JS代码.虽然JS代码嵌入到HTML页面中,但它不起作用.我怎样才能使它工作?

javascript php ajax

0
推荐指数
1
解决办法
290
查看次数

-5
推荐指数
1
解决办法
1317
查看次数