当我调用函数时,我的应用程序具有构建字段。
它显示 Mach-O 链接器错误。
我在哪里犯了错误?
-(void)viewDidAppear:(BOOL)animated
{
ScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 44, self.view.frame.size.width, self.view.frame.size.height-88)];
ScrollView.pagingEnabled = YES;
ScrollView.contentSize = CGSizeMake(self.view.frame.size.width*13, self.view.frame.size.height-88);
[self.view addSubview:ScrollView];
arrImages = [NSArray arrayWithObjects:@"image-001", @"image-002", nil];
LoadImage:(1);
}
-(void)LoadImage:(int *)index;
{
ImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-88)];
[ImageView setImage:[arrImages objectAtIndex:index]];
[ScrollView addSubview:ImageView];
}