That's not true.
To upgrade the memory in an iMac there's 1 screw in the way.
To upgrade the memory or hard drive in a MacBook, there are 10 or so screws, but as long as you don't damage your device in the process it remains under warranty.
People like to make Apple out to be draconian about this stuff, but let's at least do basic fact-checking.