随机解析问题

时间:2012-12-06 20:44:32

标签: ios xcode parsing

我的代码工作正常然后突然间我得到了这4个随机解析问题...... 任何人都可以帮我解决最新情况吗?

下面的图片显示了问题。

http://postimage.org/image/qu0gzsoe3/

代码也在

之下
    #import "ComputingProjectFirstViewController.h"

@interface ComputingProjectFirstViewController()



@end

@implementation ComputingProjectFirstViewController

@synthesize imageview = HomeImage;

- (void)viewDidLoad
{

    NSAssert(self.imageview, @"self.imageView is nil. Check your IBOutlet connections");

    imageArray = [NSArray arrayWithObjects:
                  [UIImage imageNamed:@"wide awake 0.jpg"],
                  [UIImage imageNamed:@"wide awake 1.jpg"],
                  [UIImage imageNamed:@"wide awake 2.jpg"],
                  [UIImage imageNamed:@"wide awake 3.jpg"],
                  [UIImage imageNamed:@"wide awake 4.jpg"],
                  [UIImage imageNamed:@"wide awake 5.jpg"],
                  [UIImage imageNamed:@"wide awake 6.jpg"],
                  nil];
                self.imageview.backgroundColor = [UIColor blackColor];
                  self.imageview.clipsToBounds = YES;

    int count = [imageArray count];
    for (int i = 0; i <count-1 ; i++)
    {
        UIImage *currentImage = [imageArray objectAtIndex: i];
        UIImage *nextImage = [imageArray objectAtIndex: i +1];
        self.imageview.image = [imageArray objectAtIndex: i];
        [self.view addSubview:self.imageview];
        CABasicAnimation *crossFade = [CABasicAnimation animationWithKeyPath:@"contents"];
        crossFade.duration = 5.0;
        crossFade.fromValue = (__bridge id)(currentImage.CGImage);
        crossFade.toValue = (__bridge id)(nextImage.CGImage);
        [self.imageview.layer addAnimation:crossFade forKey:@"animateContents"];
        self.imageview.image = nextImage;

    };

.h文件:

 #import <UIKit/UIKit.h> 
 #import <QuartzCore/QuartzCore.h>
 #import <MessageUI/MessageUI.h>


 @interface ComputingProjectFirstViewController :       UIViewController<MFMailComposeViewControllerDelegate>{
UIImageView* HomeImage;
NSArray *imageArray;


@property (nonatomic, retain) IBOutlet UIImageView* imageview;



@end    

1 个答案:

答案 0 :(得分:0)

如果viewDidLoad {}}} {}}} {} {} {{}} {{}} {}} {}} {}}应该是这样的

}

同样在您的标题中,您遗漏的viewDidLoad应该如下所示:

;