Under the UK statutory residency test, you are either UK resident or non-UK resident for a full tax year and at all times for that tax year. If, however, during the year you either leave the UK to live or work abroad, or come from abroad to live or work in the UK, you may be eligible for the tax year to be split into two parts:
The Finance Bill 2013 has confirmed an alignment of the income tax and Capital gains tax rules for temporary non-residency. In particular, for life assurance or redemption bonds taken out before the period of non-UK residency, where a gain is made whilst outside the UK (which does not become chargeable in the UK), tax on the gain will be due for the year of return to the UK.