2013年12月27日金曜日

UIViewのアニメーション

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(scrollAnimationDidEnd)];

//ここに処理を追加
animeView.frame = CGRectMake(0.0, 10.0, 100, 100)
                            
[UIView commitAnimations];

2013年12月10日火曜日

[iOS]UIImageViewに追加されたUIButtonが反応しない場合の処理

UIImageVIewはタッチイベントに対応してないので、

imageView.userInteractionEnabled = YES;


とするとタッチ可能になる