私は同じ問題を抱えていますが、私の場合は2リンクと2番目の作業を確認しています。 私は自分のコードを投稿しています。
messageView = [[UIView alloc] initWithFrame:CGRectMake(20, 680, 635, 19)];
[messageView setClipsToBounds:YES];
[backgroundImageView addSubview:messageView];
lblTime = [[UILabel alloc] initWithFrame:CGRectMake(900, 680, 635, 19)];// your starting animation point
[lblTime setBackgroundColor:[UIColor clearColor]];
lblTime.textColor=[UIColor whiteColor];
[lblTime setFont:[UIFont boldSystemFontOfSize:15]];
[backgroundImageView addSubview:lblTime];
[self sendNotification:@"your message"]; // call the method
- (void)sendNotification:(NSString*)txt{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:8.5];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:messageView cache:YES];
[lblTime setText:txt];
[lblTime setTextAlignment:UITextAlignmentLeft];
lblTime.frame = CGRectMake(20, 680, 650, 19); // end point of animation
[UIView commitAnimations];
}
最初のリンクで試したことを私たちに見せることができますか?コードは動作するように見えます。 – sosborn