UIView.animateWithDuration stops after scrolling uitableviewcell
<p>i have added a infinite animation in uiTableViewCell which just blinks a UILabel inside the table view cell.</p>
<p>my problem is, when i scrolls the tableview it just stops the blinking</p>
<p>my code is</p>
<pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
    let cell = tableView.dequeueReusableCellWithIdentifier(&quot;TripListCell&quot;, forIndexPath: indexPath) as! TripListCell
    
    let trip = tripList[indexPath.section]
    cell.lblTripDirection.textColor = UIColor(red: 51/255, green: 210/255, blue: 123/255, alpha: 1.0)
    
    UIView.animateWithDuration(0.5, delay: 0.0, options: [.CurveEaseInOut, .Repeat, .Autoreverse, .AllowUserInteraction], animations: {
        
        cell.lblTripDirection.alpha = 0.0
        }, completion: {
            bool in
        cell.lblTripDirection.alpha = 1.0
        cell.lblTripDirection.textColor = UIColor.blackColor()
    })
    return cell
}
</code></pre>
<p>Update:</p>
<p>UIView.commitAnimations() before returning the cell worked for me.
Thank you everyone :)</p>