How can you stop people from smoking in your apartment?

Kick them out. Spell out your rules carefully and then enforce them. Ask any one who will not respect your no-smoking rules to leave.