我有一个 UIImageView ,我想在其中显示存储在 sqlite 中的动画系列图像。我怎样才能做到这一点?
在 .hi 有喜欢..
UIImageView *photosImgView;
@property(nonatomic,retain)IBOutlet UIImageView *photosImgView;
在.mi 有喜欢..
@synthesize photosImgView;
- (void)viewDidLoad
{
[super viewDidLoad];
PeopleTable *ppl = [[People alloc] init];
photosImgView.animationImages=[NSArray arrayWithArray:ppl.photo]; //(problem is in this line)
photosImgView.animationDuration = 5;
photosImgView.animationRepeatCount = 1;
[photosImgView startAnimating];
[self.view addSubview:photosImgView];
}
请帮助我..提前谢谢...