There are inside devices that could stop someone with a master key, like chain locks, but you have to be in the apartment. Once you leave, you obviously can't set the chain, and anyone with a master key, or is a good lock picker, can get in.
I've never heard of setting the bolt a certain way, except maybe in hotels. Even then, it only works if someone is physically in the room.