缠 means 'to wind / entangle.' 难缠 = 'hard to wind around' — picture trying to wrap a string around someone who keeps wriggling free. The image fits both demanding people and tricky problems.
usage
Mostly used about people (clients, customers, opponents, in-laws), but also fits stubborn problems or illnesses (难缠的疾病). Always carries a tinge of complaint.