Apple (whose QA has gone down considerably since the introduction of the iPhone) have been surprisingly brilliant to me.
I had a (bought refurbished) MacBook Pro that had a known fault, so they took it back and replaced more than 50% of the computer. This then came back with a scratched screen, they took it away and replaced the screen no questions, it came back still not quite right, they took it away again, then a guy from Apple called me, apologised, and said 'We've just released a new version of the MBP, and because of the issues you've had, we're gonna keep yours, and send you the next model up'
A few months later I had a display go faulty, they took it in, I chased it up a week or two later, they explained they were still waiting for parts, said if I wanted, I could just go into the store and collect a brand new one off the shelf, clearly I jumped at the chance.
I've also had numerous iPhones with intermittent faults that they've replaced on faith, seems I must be on a good list somewhere!