Giving up has to be your decision and your decision only.
As for me, I never really gave up as much as gave in, If that makes sense. After awhile, you just get to the point where you don't have the energy to fight or try to control the situation anymore and you just let things happen on their own. It's really liberating once you get there.
It may not change your situation, but it sure helps with the anxiety, anger, sadness, remorse, etc your feeling. The whole range of emotions or what some describe as the "roller coaster" subsides and you start to relax a little more. You may even start to have some fun of your own for a change. Your focus shifts from them to yourself and kids if you have any.
I don't believe detachment is something you learn to do as much as something that happens naturally. I think we all as humans have our "breaking point" and than the shields come up. We detach to protect ourselves from the hurt and pain.
"It is curious that physical courage should be so common in the world and moral courage so rare." -Mark Twain