So there is a UITextField
and I have a limit of characters on the field. If user tries to enter anything bigger, UIView
appears. I already have that part animated. Here is what I have:
public void animateHoursMesg() {
var HoursMesgExpandPos = new PointF (248.0f, 273.0f);
var HoursMesgInitPos = new PointF (400.0f, 273.0f);
UIView.Animate (
duration: 0.3f,
delay: 0,
options: UIViewAnimationOptions.CurveEaseInOut,
animation: () => {
if (Flag_HoursMesg) {
view_HoursLimitMesg.Center = HoursMesgInitPos;
Flag_HoursMesg = false;
} else {
view_HoursLimitMesg.Center = HoursMesgExpandPos;
Flag_HoursMesg = true;
}
},
completion: () => {
}
);
}
The problem is I want this view to animate away 5 seconds after it appears.
Can someone please help me with this?
Thank you for your time.