Upvote:4
There's no fixed rule.
An often stated rule of thumb is that if -- averaged over several visits -- you're spending more time outside the UK than in, you probably won't be considered to be living in the UK through frequent or successive visits. But it's really always a concrete judgement based on both your travel history and your answers when you're asked about the purpose of your visits, and how credible you seem in person.