//添加照片
- (void)addPic:(UIButton *)button {
if (self.aniBool == NO) {
//动画效果
[UIView animateWithDuration:0.2 animations:^{
self.lookPic.frame = CGRectMake(kScreenWidth / 18 + 75 + kInterval_20,kInterval_15 + kScreenHeight / 8 * 5 + kScreenHeight / 12 + 30, 75, 75);
}];
self.aniBool = YES;
} else {
self.aniBool = NO;
//动画效果
[UIView animateWithDuration:0.2 animations:^{
self.lookPic.frame = CGRectMake(kScreenWidth / 18 + 75 + kInterval_20, kScreenHeight, 75, 75);
}];
}
//延时
[self performSelector:@selector(changeView) withObject:self afterDelay:0.2];
}
//延时调用
- (void)changeView {
//查找本地相册按钮
if (self.aniBool1 == NO) {
//动画效果
[UIView animateWithDuration:0.2 animations:^{
self.addPhoto.frame = CGRectMake(kScreenWidth / 18 + 180 + kInterval_20,kInterval_15 + kScreenHeight / 8 * 5 + kScreenHeight / 12 + 30, 75, 75);
}];
self.aniBool1 = YES;
} else {
self.aniBool1 = NO;
//动画效果
[UIView animateWithDuration:0.2 animations:^{
self.addPhoto.frame = CGRectMake(kScreenWidth / 18 + 180 + kInterval_20, kScreenHeight, 75, 75);
}];
}
}