I believe when many people say "apartment" they think of high rise buildings in the middle of a concrete jungle. If you had a high energy dog in one of those, especially a large breed, I could see where a big issue may happen. Living in NYC for a bit, I noticed how many people who live in those places own high energy small breeds, but they just don't realize it, or at least forgo training completely and allow the dog initiative. It almost looked like a disaster.
When I lived in a house with a fenced in yard, it was very easy to go outside and toss a ball around or to just let him loose to do his business. He would not stay out there if I was not out there. That is the only perk to having a home, was the easy pee breaks, otherwise he is always by my side. Now that I am in an apartment, there is a little bit more management for getting his energy out especially with a lack of off leash areas, and pee time, but the idea is the same. Manage your dog, exercise your dog, train your dog, and you will be fine.